Commit 1fc8594e authored by Halla Rempt's avatar Halla Rempt

Fix loading the icons from standard actions

parent 034760db
......@@ -230,8 +230,7 @@ void KisActionManager::updateGUI()
KisAction *KisActionManager::createStandardAction(KStandardAction::StandardAction actionType, const QObject *receiver, const char *member)
{
QAction *standardAction = KStandardAction::create(actionType, receiver, member, 0);
QString iconName = standardAction->icon().name();
KisAction *action = new KisAction(KisIconUtils::loadIcon(iconName), standardAction->text());
KisAction *action = new KisAction(standardAction->icon(), standardAction->text());
const QList<QKeySequence> defaultShortcuts = standardAction->property("defaultShortcuts").value<QList<QKeySequence> >();
const QKeySequence defaultShortcut = defaultShortcuts.isEmpty() ? QKeySequence() : defaultShortcuts.at(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment