diff options
author | Petr Mrázek <peterix@users.noreply.github.com> | 2019-06-23 21:31:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-23 21:31:56 +0200 |
commit | 75ddbc8851c8227baad4e2f1d120785090d5e992 (patch) | |
tree | cfe3af77938b37837627afa0e3d494f8cf0b5eb1 /application/MainWindow.cpp | |
parent | 2f1d31cf43df796a267c2ae32c8ce16be269f698 (diff) | |
parent | 1ed84eddd53cfd7e21b96a2f5e55e07d448e2482 (diff) | |
download | MultiMC-75ddbc8851c8227baad4e2f1d120785090d5e992.tar MultiMC-75ddbc8851c8227baad4e2f1d120785090d5e992.tar.gz MultiMC-75ddbc8851c8227baad4e2f1d120785090d5e992.tar.lz MultiMC-75ddbc8851c8227baad4e2f1d120785090d5e992.tar.xz MultiMC-75ddbc8851c8227baad4e2f1d120785090d5e992.zip |
Merge pull request #2705 from Janrupf/feature/fix_external_deletion_interaction
GH-2515 Save instance ID before display dialog
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index a4ef4e51..00f95fca 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -1667,6 +1667,7 @@ void MainWindow::on_actionDeleteInstance_triggered() { return; } + auto id = m_selectedInstance->id(); auto response = CustomMessageBox::selectable( this, tr("CAREFUL!"), @@ -1677,7 +1678,7 @@ void MainWindow::on_actionDeleteInstance_triggered() )->exec(); if (response == QMessageBox::Yes) { - MMC->instances()->deleteInstance(m_selectedInstance->id()); + MMC->instances()->deleteInstance(id); } } |