From 6435e1ab8a4d42684137e122dcf0aca02e28a1c2 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 23 May 2015 17:18:04 +0200 Subject: - bugfix: couldn't change from "qt" styles back to regular style --- src/moapplication.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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)); -- cgit v1.3.1