summaryrefslogtreecommitdiff
path: root/src/downloadmanager.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-02 16:59:30 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-12-02 16:59:30 -0500
commit8fb970faa38d808a84b1a5359462f39efbe2b37b (patch)
treef9bd3d537349ee8ffba7850599bc09c2116fbced /src/downloadmanager.h
parentd5a4077a4396058a9f79339dba0c29c4b742b60f (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.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;