Merge pull request #1472 from marcofernandezheras/Fix-Portable-Paths
Fix thememanager on portable build
This commit is contained in:
commit
2a83f6dd4b
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue