diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-07-24 01:24:06 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-07-28 22:12:57 +0200 |
commit | 9965decd81b8e8ca98d610f605263ccf4ce541e1 (patch) | |
tree | 48a8402d2d0c6dc27101476ef0e7ca8fb5ff9307 /application/MainWindow.cpp | |
parent | 9e7cdbfe1183f7124308d4468104d26feb4a017d (diff) | |
download | MultiMC-9965decd81b8e8ca98d610f605263ccf4ce541e1.tar MultiMC-9965decd81b8e8ca98d610f605263ccf4ce541e1.tar.gz MultiMC-9965decd81b8e8ca98d610f605263ccf4ce541e1.tar.lz MultiMC-9965decd81b8e8ca98d610f605263ccf4ce541e1.tar.xz MultiMC-9965decd81b8e8ca98d610f605263ccf4ce541e1.zip |
NOISSUE squish.
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index a84af880..9a1efb2b 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -86,7 +86,6 @@ #include "dialogs/EditAccountDialog.h" #include "dialogs/NotificationDialog.h" #include "dialogs/ExportInstanceDialog.h" -#include <FolderInstanceProvider.h> #include <InstanceImportTask.h> #include "UpdateController.h" #include "KonamiCode.h" @@ -1279,11 +1278,8 @@ void MainWindow::runModalTask(Task *task) void MainWindow::instanceFromInstanceTask(InstanceTask *rawTask) { - std::unique_ptr<Task> task(MMC->folderProvider()->wrapInstanceTask(rawTask)); + std::unique_ptr<Task> task(MMC->instances()->wrapInstanceTask(rawTask)); runModalTask(task.get()); - - // FIXME: handle instance selection after creation - // finalizeInstance(newInstance); } void MainWindow::on_actionCopyInstance_triggered() @@ -1299,11 +1295,8 @@ void MainWindow::on_actionCopyInstance_triggered() copyTask->setName(copyInstDlg.instName()); copyTask->setGroup(copyInstDlg.instGroup()); copyTask->setIcon(copyInstDlg.iconKey()); - std::unique_ptr<Task> task(MMC->folderProvider()->wrapInstanceTask(copyTask)); + std::unique_ptr<Task> task(MMC->instances()->wrapInstanceTask(copyTask)); runModalTask(task.get()); - - // FIXME: handle instance selection after creation - // finalizeInstance(newInstance); } void MainWindow::finalizeInstance(InstancePtr inst) |