1
0
Fork 0

GUI: don't make menus checkable per default

This commit is contained in:
mrexodia 2016-10-20 13:14:19 +02:00
parent 4c972595bc
commit b49740c482
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 1 deletions

View File

@ -1059,7 +1059,6 @@ void MainWindow::addMenuEntry(int hMenu, QString title)
QWidget* parent = hMenu == -1 ? this : menu->parent;
QAction* wAction = new QAction(title, parent);
wAction->setObjectName(QString().sprintf("ENTRY|%d", hEntryNew));
wAction->setCheckable(true);
parent->addAction(wAction);
connect(wAction, SIGNAL(triggered()), this, SLOT(menuEntrySlot()));
newInfo.mAction = wAction;
@ -1195,6 +1194,7 @@ void MainWindow::setCheckedMenuEntry(int hEntry, bool checked)
if(mEntryList.at(i).hEntry == hEntry)
{
const MenuEntryInfo & entry = mEntryList.at(i);
entry.mAction->setCheckable(true);
entry.mAction->setChecked(checked);
break;
}