summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorKrzysztof Starecki <krzysztof.starecki@gmail.com>2019-01-01 14:22:31 +0100
committerKrzysztof Starecki <krzysztof.starecki@gmail.com>2019-01-01 14:27:51 +0100
commit79ccbccb1bc6e7794ec92d3da7ef762bd7d252bf (patch)
tree5db63512ff299436bdb43e52b4a6b8aeacad2c44 /src/mainwindow.cpp
parent44d42cb26dca902d744a994a91279ca45c79d75f (diff)
Fix toolbar buttons not setting their icons on startup
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index f913ad0a..80db447c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -457,8 +457,12 @@ MainWindow::MainWindow(QSettings &initSettings
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());
+ QWidget *actionWidget = ui->toolBar->widgetForAction(action);
+ actionWidget->setObjectName(action->objectName());
+ actionWidget->style()->unpolish(actionWidget);
+ actionWidget->style()->polish(actionWidget);
}
+
emit updatePluginCount();
emit updateModCount();
}