mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 02:20:00 +03:00
Merge pull request #2705 from Janrupf/feature/fix_external_deletion_interaction
GH-2515 Save instance ID before display dialog
This commit is contained in:
commit
75ddbc8851
2 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue