diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-10-12 12:54:19 +0100 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-10-12 12:54:19 +0100 |
| commit | 077a58f410b4d4ef32f7a9ebc0821f08c3cec6eb (patch) | |
| tree | ba17c41455a06a74224a096544efd3c3355b3e21 /src/selfupdater.h | |
| parent | f5c86bc22c23374540d07ef63320b810c39e1df4 (diff) | |
| parent | 7d93a9a2003f31188e4da8cbcd7e5df0352bb900 (diff) | |
Merge branch 'master' of https://github.com/TanninOne/modorganizer into archive_cleanup
# Conflicts:
# src/installationmanager.cpp
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 ac9bddb3..f804f63c 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
@@ -118,6 +119,7 @@ private: void report7ZipError(const QString &errorMessage);
QString retrieveNews(const QString &description);
void showProgress();
+ void closeProgress();
private slots:
@@ -135,7 +137,7 @@ private: QString m_NewestVersion;
QFile m_UpdateFile;
QNetworkReply *m_Reply;
- QProgressDialog m_Progress;
+ QProgressDialog *m_Progress { nullptr };
bool m_Canceled;
int m_Attempts;
|
