aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Chew <kenneth.c0@protonmail.com>2022-06-19 15:00:51 -0400
committerKenneth Chew <kenneth.c0@protonmail.com>2022-06-21 19:19:55 -0400
commit5c05cf220619b9203fa0282b683c8fff3d73dcbf (patch)
tree980cad8fe19a1cb84d35959db85387a5fccd0f5f
parentd4e544c62caaf18c797cafc5900ce019f2d71536 (diff)
downloadPrismLauncher-5c05cf220619b9203fa0282b683c8fff3d73dcbf.tar.gz
PrismLauncher-5c05cf220619b9203fa0282b683c8fff3d73dcbf.tar.bz2
PrismLauncher-5c05cf220619b9203fa0282b683c8fff3d73dcbf.zip
Disable launch actions in menu bar when last instance is deleted
This caused a crash when the action was selected!
-rw-r--r--launcher/ui/MainWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index ebd86228..cceeb288 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -2183,6 +2183,7 @@ void MainWindow::selectionBad()
statusBar()->clearMessage();
ui->instanceToolBar->setEnabled(false);
ui->setInstanceActionsEnabled(false);
+ updateToolsMenu();
ui->renameButton->setText(tr("Rename Instance"));
updateInstanceToolIcon("grass");