Fix loading of dolphinui.rc

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
This commit is contained in:
Elvis Angelaccio 2017-07-28 13:35:50 +02:00
parent 63e2d65bc8
commit 594a367834

View 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,