fix missing checkbox in menu
This commit is contained in:
parent
7e35943cb1
commit
97bcb4becc
1 changed files with 6 additions and 0 deletions
|
@ -1679,6 +1679,12 @@ QAction *MainWindow::createToggle(const char *id, const char *name,
|
|||
iconSVGName);
|
||||
// Remove if the icon is not set. Checkbox will be drawn by style sheet.
|
||||
if (!iconSVGName || !*iconSVGName) action->setIcon(QIcon());
|
||||
#if defined(_WIN32)
|
||||
else {
|
||||
bool visible = Preferences::instance()->getBoolValue(showIconsInMenu);
|
||||
action->setIconVisibleInMenu(visible);
|
||||
}
|
||||
#endif
|
||||
action->setCheckable(true);
|
||||
if (startStatus == true) action->trigger();
|
||||
bool ret =
|
||||
|
|
Loading…
Reference in a new issue