summaryrefslogtreecommitdiffstats
path: root/gui/MainWindow.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-17 20:31:50 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-17 20:31:50 +0100
commit0b56b5efafffca77d6deee966097c55e78fb0aef (patch)
treeddb7011fde89c587b864a8c1d6d36cdcaef6472b /gui/MainWindow.cpp
parent4e8be668cb9b3c4929748aafb1baf53e6b1c098b (diff)
downloadMultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar
MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.gz
MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.lz
MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.xz
MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.zip
Instance flags. Currently used for marking instances as broken. Can later be used for badges.
Diffstat (limited to 'gui/MainWindow.cpp')
-rw-r--r--gui/MainWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp
index 29f7c8e8..a4c04d89 100644
--- a/gui/MainWindow.cpp
+++ b/gui/MainWindow.cpp
@@ -354,6 +354,7 @@ void MainWindow::showInstanceContextMenu(const QPoint &pos)
QMenu myMenu;
myMenu.addActions(actions);
+ myMenu.setEnabled(m_selectedInstance->canLaunch());
myMenu.exec(view->mapToGlobal(pos));
}
@@ -1366,7 +1367,7 @@ void MainWindow::instanceChanged(const QModelIndex &current, const QModelIndex &
(BaseInstance *)current.data(InstanceList::InstancePointerRole)
.value<void *>()))
{
- ui->instanceToolBar->setEnabled(true);
+ ui->instanceToolBar->setEnabled(m_selectedInstance->canLaunch());
renameButton->setText(m_selectedInstance->name());
ui->actionChangeInstLWJGLVersion->setEnabled(
m_selectedInstance->menuActionEnabled("actionChangeInstLWJGLVersion"));