diff options
| author | Tannin <sherb@gmx.net> | 2015-10-10 19:35:18 +0200 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2015-10-10 19:35:18 +0200 |
| commit | 90d87a0cf75be44da34c3c3282f82e5b3a399168 (patch) | |
| tree | 8fd5a7c6fa519d2b40e66bcddde747f72b920d70 /src/selfupdater.h | |
| parent | 115315df2809fb66eb5b18b85f089da457ccc19b (diff) | |
fixed progress dialogs appearing on startup
Appears to be a new bug in qt or maybe incompatibility with Windows 10: All Progress dialogs were made visibly automatically a few seconds after application startup. This was "fixed" by creating the dialog dynamically on demand
Diffstat (limited to 'src/selfupdater.h')
| -rw-r--r-- | src/selfupdater.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/selfupdater.h b/src/selfupdater.h index b5bbc406..143b05cb 100644 --- a/src/selfupdater.h +++ b/src/selfupdater.h @@ -32,6 +32,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. class NexusInterface;
+
/**
* @brief manages updates for Mod Organizer itself
* This class is used to update the Mod Organizer
@@ -39,7 +40,7 @@ class NexusInterface; * 1. call testForUpdate() to determine is available
* 2. if the updateAvailable() signal is received, allow the user to start the update
* 3. if the user start the update, call startUpdate()
- * 4. startUpdate() will first query a list of files, try to determine if there is an
+ * 4. startUpdate() will first query a list of files, try to determine if there is an
* incremental update. If not, the user will have to confirm the download of a full download.
* Once the correct file is selected, it is downloaded.
* 5. before the downloaded file is extracted, existing files that are going to be replaced are
@@ -48,7 +49,7 @@ class NexusInterface; * 7. finally, a restart is requested via signal.
* 8. at restart, Mod Organizer will remove the update_backup directory since none of the files
* should now be open
- *
+ *
* @todo use NexusBridge
**/
class SelfUpdater : public QObject
@@ -121,6 +122,7 @@ private: void report7ZipError(LPCWSTR errorMessage);
QString retrieveNews(const QString &description);
void showProgress();
+ void closeProgress();
private slots:
@@ -138,7 +140,7 @@ private: QString m_NewestVersion;
QFile m_UpdateFile;
QNetworkReply *m_Reply;
- QProgressDialog m_Progress;
+ QProgressDialog *m_Progress { nullptr };
bool m_Canceled;
int m_Attempts;
|
