diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-02 16:59:30 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-02 16:59:30 -0500 |
| commit | 8fb970faa38d808a84b1a5359462f39efbe2b37b (patch) | |
| tree | f9bd3d537349ee8ffba7850599bc09c2116fbced /src/downloadmanager.h | |
| parent | d5a4077a4396058a9f79339dba0c29c4b742b60f (diff) | |
fixed crash when starting multiple downloads with dialog boxes opened
fixed download manager dialog boxes not having a parent
Diffstat (limited to 'src/downloadmanager.h')
| -rw-r--r-- | src/downloadmanager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/downloadmanager.h b/src/downloadmanager.h index bed1b3cc..f2ad15f4 100644 --- a/src/downloadmanager.h +++ b/src/downloadmanager.h @@ -137,6 +137,8 @@ public: ~DownloadManager(); + void setParentWidget(QWidget* w); + /** * @brief determine if a download is currently in progress * @@ -368,6 +370,7 @@ public: * @return index of that download or -1 if it wasn't found */ int indexByName(const QString &fileName) const; + int indexByInfo(const DownloadInfo* info) const; void pauseAll(); @@ -529,6 +532,7 @@ private: NexusInterface *m_NexusInterface; OrganizerCore *m_OrganizerCore; + QWidget* m_ParentWidget; QVector<std::tuple<QString, int, int>> m_PendingDownloads; |
