Load resources manually at startup since they are now in a static library.

This commit is contained in:
codestation
2015-12-27 22:32:08 -04:30
parent 5f508fa47c
commit 6eeba0b71a
4 changed files with 7 additions and 1 deletions

View File

@@ -99,6 +99,9 @@ static bool setup_handlers()
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(commonrc);
Q_INIT_RESOURCE(translations);
if(SingleCoreApplication::sendMessage("Another instance of Qcma tried to start")) {
QTextStream(stdout) << "An instance of Qcma is already running" << endl;
return 0;

View File

@@ -40,6 +40,6 @@ HEADERS += \
OTHER_FILES += \
resources/xml/psp2-updatelist.xml
RESOURCES += common.qrc translations.qrc
RESOURCES += commonrc.qrc translations.qrc
PKGCONFIG = libvitamtp libavformat libavcodec libavutil libswscale

View File

@@ -79,6 +79,9 @@ static bool setup_handlers()
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(commonrc);
Q_INIT_RESOURCE(translations);
if(SingleApplication::sendMessage(QObject::tr("An instance of Qcma is already running"))) {
return 0;
}