feat(AppController): force default theme style

(cherry picked from commit 83a307e337)
This commit is contained in:
Ronan Abhamon 2018-01-19 15:16:03 +01:00 committed by François Grisez
parent ae3400e024
commit be59d7d5f1

View file

@ -23,6 +23,7 @@
#include <QDirIterator>
#include <QFontDatabase>
#include <QMessageBox>
#include <QQuickStyle>
#include "gitversion.h"
@ -83,6 +84,7 @@ AppController::AppController (int &argc, char *argv[]) {
QCoreApplication::setApplicationVersion(APPLICATION_VERSION);
mApp = new App(argc, argv);
QQuickStyle::setStyle("Default");
if (mApp->isSecondary()) {
QString command = mApp->getCommandArgument();
mApp->sendMessage(command.isEmpty() ? "show" : command.toLocal8Bit(), -1);