summaryrefslogtreecommitdiffstats
path: root/api/logic/modplatform/FtbPackDownloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/modplatform/FtbPackDownloader.cpp')
-rw-r--r--api/logic/modplatform/FtbPackDownloader.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/api/logic/modplatform/FtbPackDownloader.cpp b/api/logic/modplatform/FtbPackDownloader.cpp
index a3951bfd..caadd4ae 100644
--- a/api/logic/modplatform/FtbPackDownloader.cpp
+++ b/api/logic/modplatform/FtbPackDownloader.cpp
@@ -9,8 +9,6 @@ FtbPackDownloader::FtbPackDownloader() {
}
FtbPackDownloader::~FtbPackDownloader(){
- delete netJobContainer.get();
- netJobContainer.reset(nullptr);
}
bool FtbPackDownloader::isValidPackSelected(){
@@ -22,7 +20,7 @@ bool FtbPackDownloader::isValidPackSelected(){
return false;
}
- return other.oldVersions.contains(selectedVersion);
+ return other.oldVersions.contains(selectedVersion) && !other.broken;
}
QString FtbPackDownloader::getSuggestedInstanceName() {
@@ -104,3 +102,8 @@ void FtbPackDownloader::_downloadFailed(QString reason) {
netJobContainer.reset();
emit downloadFailed(reason);
}
+
+NetJobPtr FtbPackDownloader::getNetJob()
+{
+ return netJobContainer;
+}