diff options
| author | Tannin <devnull@localhost> | 2015-05-23 17:18:04 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-23 17:18:04 +0200 |
| commit | 6435e1ab8a4d42684137e122dcf0aca02e28a1c2 (patch) | |
| tree | 8b764e2ef70d5c88d6c48c9b6ac9772bbed2f472 | |
| parent | dbfa9b89d1b1c87c918e152682c334a20c2e60a4 (diff) | |
- bugfix: couldn't change from "qt" styles back to regular style
| -rw-r--r-- | src/moapplication.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/moapplication.cpp b/src/moapplication.cpp index 07e6ac39..84806af6 100644 --- a/src/moapplication.cpp +++ b/src/moapplication.cpp @@ -102,6 +102,7 @@ bool MOApplication::setStyleFile(const QString &styleName) updateStyle(styleName);
}
} else {
+ setStyle(new ProxyStyle(QStyleFactory::create(m_DefaultStyle)));
setStyleSheet("");
}
return true;
@@ -141,6 +142,7 @@ void MOApplication::updateStyle(const QString &fileName) setStyleSheet("");
#endif
} else {
+ qDebug("restore default style: %s", qPrintable(m_DefaultStyle));
setStyle(new ProxyStyle(QStyleFactory::create(m_DefaultStyle)));
if (QFile::exists(fileName)) {
setStyleSheet(QString("file:///%1").arg(fileName));
|
