Fix last minute derps

* Changelog formatting
* Update dialog popping up on start even when it shouldn't
This commit is contained in:
Petr Mrázek 2014-07-14 01:11:52 +02:00
parent e7f67a73b3
commit 8bb906bbd7
2 changed files with 9 additions and 7 deletions

View File

@ -309,7 +309,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
&MainWindow::updateNotAvailable);
// if automatic update checks are allowed, start one.
if (MMC->settings()->get("AutoUpdate").toBool())
on_actionCheckUpdate_triggered();
{
auto updater = MMC->updateChecker();
updater->checkForUpdate(false);
}
connect(MMC->notificationChecker().get(),
&NotificationChecker::notificationCheckFinished, this,
@ -931,7 +934,6 @@ void MainWindow::on_actionConfig_Folder_triggered()
void MainWindow::on_actionCheckUpdate_triggered()
{
auto updater = MMC->updateChecker();
updater->checkForUpdate(true);
}