summaryrefslogtreecommitdiff
path: root/src/nxmaccessmanager.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-07 17:48:48 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-10 20:45:37 -0400
commitc38e864c92b7958099d74048fdfc88a5d3b40dcc (patch)
tree4bec21ca5863d3be49135498d5108e73cccee271 /src/nxmaccessmanager.h
parent724945ab33864c1fd8d3162bdd85ca66f8bb311d (diff)
set the progress dialog's parent to main window as soon as it's available
Diffstat (limited to 'src/nxmaccessmanager.h')
-rw-r--r--src/nxmaccessmanager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nxmaccessmanager.h b/src/nxmaccessmanager.h
index 1bdeae40..16dde612 100644
--- a/src/nxmaccessmanager.h
+++ b/src/nxmaccessmanager.h
@@ -41,6 +41,8 @@ public:
~NXMAccessManager();
+ void setTopLevelWidget(QWidget* w);
+
bool validated() const;
bool validateAttempted() const;
@@ -94,9 +96,10 @@ protected:
QIODevice *device);
private:
+ QWidget* m_TopLevel;
QTimer m_ValidateTimeout;
QNetworkReply *m_ValidateReply;
- QProgressDialog *m_ProgressDialog { nullptr };
+ mutable QProgressDialog* m_ProgressDialog;
QString m_MOVersion;