diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-12-14 01:18:18 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-12-14 01:18:18 +0100 |
commit | 14bb666a207ee76cf302152aa03579a47ef32215 (patch) | |
tree | e9264fba3e9922df0ecc3b2847a19def169b67f1 /application/pages | |
parent | 075e173fbd90292706d4033fcb965a4e48b2da6f (diff) | |
download | MultiMC-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')
-rw-r--r-- | application/pages/instance/LegacyUpgradePage.cpp | 2 |
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()); } |