Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix the action text not being hidden right after icon override change

Dmitry Kazakovc8dfa0182d74
diff --git a/libs/ui/KisMainWindow.cpp b/libs/ui/KisMainWindow.cpp
index 84fd047c49..df9346dad4 100644
--- a/libs/ui/KisMainWindow.cpp
+++ b/libs/ui/KisMainWindow.cpp
@@ -2319,8 +2319,14 @@ void KisMainWindow::slotNewToolbarConfig()
return;
plugActionList("toolbarlist", d->toolbarList);
- applyToolBarLayout();
+
+ /**
+ * First we should apply icon overrides, and only after that we
+ * should update the layout, since the function checks for the
+ * presence of the icons in the action.
+ */
applyActionIconOverridesFromLocalXML();
+ applyToolBarLayout();
}
void KisMainWindow::slotToolbarToggled(bool toggle)