diff options
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d87bf0f0..2889876b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -257,9 +257,6 @@ MainWindow::MainWindow(QSettings &initSettings createHelpWidget();
for (QAction *action : ui->toolBar->actions()) {
- // set the name of the widget to the name of the action to allow styling
- ui->toolBar->widgetForAction(action)->setObjectName(action->objectName());
-
if (action->isSeparator()) {
// insert spacers
ui->toolBar->insertWidget(action, spacer);
@@ -444,6 +441,11 @@ MainWindow::MainWindow(QSettings &initSettings refreshExecutablesList();
updateToolBar();
+
+ for (QAction *action : ui->toolBar->actions()) {
+ // set the name of the widget to the name of the action to allow styling
+ ui->toolBar->widgetForAction(action)->setObjectName(action->objectName());
+ }
}
|
