Commit 36f19be0 authored by marco's avatar marco
Browse files

Fix thememanager on portable build

parent dd4900b0
......@@ -43,7 +43,9 @@ QStringMap & ThemeManager::getAvailableThemes()
// load themes from user profile dir
dir =
#if QT_VERSION < 0x050000
#ifdef PORTABLE_BUILD
qApp->applicationDirPath() +
#elif QT_VERSION < 0x050000
QDesktopServices::storageLocation(QDesktopServices::DataLocation) +
#else
QStandardPaths::standardLocations(QStandardPaths::DataLocation).first() +
......@@ -141,4 +143,4 @@ void ThemeManager::themeChangedSlot()
QDir::setSearchPaths("theme", resources);
emit themeChanged();
}
\ No newline at end of file
}
Supports Markdown
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