summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-08-07 23:20:55 -0500
committerLostDragonist <lost.dragonist@gmail.com>2018-08-12 12:13:47 -0500
commit80594d6e1a6f90dd3964497d66ffca54888a79d4 (patch)
tree43fdc0f0e49d88bcf15d27051bd8b94042bc72a5 /src/mainwindow.cpp
parent56473e0ec84e637041aacdc499e490056858a443 (diff)
Set toolbar widget names later to catch the problems and update widgets
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
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());
+ }
}