summaryrefslogtreecommitdiff
path: root/src/downloadmanager.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-02 17:11:23 -0500
committerGitHub <noreply@github.com>2019-12-02 17:11:23 -0500
commit472aa02068f59451ecda724775b097c864d56624 (patch)
treea8de1b147d17bb151d82560de2a53d935df9e55a /src/downloadmanager.h
parent3d434856aeef4684fd008b9de617defac84e40ff (diff)
parent8fb970faa38d808a84b1a5359462f39efbe2b37b (diff)
Merge pull request #917 from isanae/download-crash
Crash when starting multiple downloads with dialog boxes opened
Diffstat (limited to 'src/downloadmanager.h')
-rw-r--r--src/downloadmanager.h4
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;