Disable launch actions in menu bar when last instance is deleted

This caused a crash when the action was selected!
This commit is contained in:
Kenneth Chew 2022-06-19 15:00:51 -04:00
parent d4e544c62c
commit 5c05cf2206
No known key found for this signature in database
GPG Key ID: F17D3E14A07739DA

View File

@ -2183,6 +2183,7 @@ void MainWindow::selectionBad()
statusBar()->clearMessage(); statusBar()->clearMessage();
ui->instanceToolBar->setEnabled(false); ui->instanceToolBar->setEnabled(false);
ui->setInstanceActionsEnabled(false); ui->setInstanceActionsEnabled(false);
updateToolsMenu();
ui->renameButton->setText(tr("Rename Instance")); ui->renameButton->setText(tr("Rename Instance"));
updateInstanceToolIcon("grass"); updateInstanceToolIcon("grass");