Commit df292952 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix setting the style

parent 2ad5f905
......@@ -149,6 +149,19 @@ KisApplication::KisApplication(const QString &key, int &argc, char **argv)
setApplicationVersion(version);
setWindowIcon(KisIconUtils::loadIcon("calligrakrita"));
QStringList styles = QStringList() << "Breeze" << "Oxygen" << "Fusion" << "Plastique";
if (!styles.contains(style()->objectName())) {
Q_FOREACH (const QString & style, styles) {
if (!setStyle(style)) {
qDebug() << "No" << style << "available.";
}
else {
break;
}
}
}
#ifdef HAVE_OPENGL
KisOpenGL::initialize();
#endif
......
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