From 36f19be06a4131e644d282fa31e95ff6fdccb577 Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 6 Sep 2015 18:29:48 +0200 Subject: [PATCH] Fix thememanager on portable build --- cockatrice/src/thememanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/thememanager.cpp b/cockatrice/src/thememanager.cpp index 0e2bb996..97a7dd95 100644 --- a/cockatrice/src/thememanager.cpp +++ b/cockatrice/src/thememanager.cpp @@ -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 +}