Improvements on the behavior of the program updater(closes #1282):

1. Check for updates every hour
2. Don't check again for this session if the user chose to ignore the new version
3. Display a message if the user checked for updates via the menu item and there isn't one
4. Remove dead code
This commit is contained in:
sledgehammer999
2014-01-25 20:39:42 +02:00
parent 7428c2c0b1
commit b7f84dabf5
4 changed files with 25 additions and 80 deletions

View File

@@ -140,8 +140,7 @@ protected slots:
// HTTP slots
void on_actionDownload_from_URL_triggered();
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
void handleUpdateCheckFinished(bool update_available, QString new_version);
void handleUpdateInstalled(QString error_msg);
void handleUpdateCheckFinished(bool update_available, QString new_version, bool invokedByUser);
#endif
protected:
@@ -200,7 +199,6 @@ private:
QTimer *preventTimer;
#if defined(Q_WS_WIN) || defined(Q_WS_MAC)
QTimer programUpdateTimer;
bool checkingProgramUpdate;
#endif
private slots: