summaryrefslogtreecommitdiffstats
path: root/application/pages/instance
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-12-14 01:18:18 +0100
committerPetr Mrázek <peterix@gmail.com>2018-12-14 01:18:18 +0100
commit14bb666a207ee76cf302152aa03579a47ef32215 (patch)
treee9264fba3e9922df0ecc3b2847a19def169b67f1 /application/pages/instance
parent075e173fbd90292706d4033fcb965a4e48b2da6f (diff)
downloadMultiMC-14bb666a207ee76cf302152aa03579a47ef32215.tar
MultiMC-14bb666a207ee76cf302152aa03579a47ef32215.tar.gz
MultiMC-14bb666a207ee76cf302152aa03579a47ef32215.tar.lz
MultiMC-14bb666a207ee76cf302152aa03579a47ef32215.tar.xz
MultiMC-14bb666a207ee76cf302152aa03579a47ef32215.zip
GH-2485 fix crash bug while creating instances
Diffstat (limited to 'application/pages/instance')
-rw-r--r--application/pages/instance/LegacyUpgradePage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/pages/instance/LegacyUpgradePage.cpp b/application/pages/instance/LegacyUpgradePage.cpp
index 15fd10cc..af800b03 100644
--- a/application/pages/instance/LegacyUpgradePage.cpp
+++ b/application/pages/instance/LegacyUpgradePage.cpp
@@ -40,7 +40,7 @@ void LegacyUpgradePage::on_upgradeButton_clicked()
upgradeTask->setName(newName);
upgradeTask->setGroup(MMC->instances()->getInstanceGroup(m_inst->id()));
upgradeTask->setIcon(m_inst->iconKey());
- std::unique_ptr<Task> task(MMC->instances()->wrapInstanceTask(upgradeTask));
+ unique_qobject_ptr<Task> task(MMC->instances()->wrapInstanceTask(upgradeTask));
runModalTask(task.get());
}