]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix loading of dolphinui.rc
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Fri, 28 Jul 2017 11:35:50 +0000 (13:35 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Fri, 28 Jul 2017 12:05:53 +0000 (14:05 +0200)
dolphin.qrc is compiled into a static library, which means we need to
force its loading with the Q_INIT_RESOURCE macro.

See http://doc.qt.io/qt-5/resources.html#using-resources-in-a-library

BUG: 382848
FIXED-IN: 17.07.90

Differential Revision: https://phabricator.kde.org/D6958

src/dolphinmainwindow.cpp

index 3d6f8489defecc2976509393a54e85c51b23f29d..658b89006fef721e7533f92f845bc667c609884b 100644 (file)
@@ -98,6 +98,8 @@ DolphinMainWindow::DolphinMainWindow() :
     m_updateToolBarTimer(0),
     m_lastHandleUrlStatJob(0)
 {
+    Q_INIT_RESOURCE(dolphin);
+
     setObjectName(QStringLiteral("Dolphin#"));
 
     connect(&DolphinNewFileMenuObserver::instance(), &DolphinNewFileMenuObserver::errorMessage,