summaryrefslogtreecommitdiff
path: root/src/moapplication.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-10-10 19:32:01 +0200
committerTannin <devnull@localhost>2013-10-10 19:32:01 +0200
commit54c7131a5e2fa282369e25344ac190d51676c383 (patch)
treecf03c6b8ba02afc17fece75d5e83a20cac4a8fbc /src/moapplication.cpp
parent15e256ef4460ecfdf05b4f17b4fe8f889f4c6b11 (diff)
- new toggle to display hidden downloads
- hidden downloads can be un-hidden - the installation manager now more thoroughly cleans up the temporary directory after installation - added SkyrimLauncher.exe to the list of auto-detected executables - bugfix: shutting down MO while downloads where active in some occasions didn't work - bugfix: when canceling the only active download the taskbar icon didn't return to normal
Diffstat (limited to 'src/moapplication.cpp')
-rw-r--r--src/moapplication.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/moapplication.cpp b/src/moapplication.cpp
index efb0b615..ac660c6c 100644
--- a/src/moapplication.cpp
+++ b/src/moapplication.cpp
@@ -32,7 +32,7 @@ MOApplication::MOApplication(int argc, char **argv)
}
-void MOApplication::setStyleFile(const QString &styleName)
+bool MOApplication::setStyleFile(const QString &styleName)
{
// remove all files from watch
QStringList currentWatch = m_StyleWatcher.files();
@@ -42,11 +42,15 @@ void MOApplication::setStyleFile(const QString &styleName)
// set new stylesheet or clear it
if (styleName.length() != 0) {
QString styleSheetName = applicationDirPath() + "/" + MOBase::ToQString(AppConfig::stylesheetsPath()) + "/" + styleName;
+ if (!QFile::exists(styleSheetName)) {
+ return false;
+ }
m_StyleWatcher.addPath(styleSheetName);
updateStyle(styleSheetName);
} else {
setStyleSheet("");
}
+ return true;
}