Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
36f19be0
Commit
36f19be0
authored
Sep 06, 2015
by
marco
Browse files
Fix thememanager on portable build
parent
dd4900b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/thememanager.cpp
View file @
36f19be0
...
...
@@ -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
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment