fix Decks, Pics replays & sounds paths on Portable build

This commit is contained in:
marco 2015-09-03 18:31:11 +02:00
parent f4ae08f8b1
commit b4c5729bf5

View file

@ -26,7 +26,13 @@ QString SettingsCache::getSettingsPath()
void SettingsCache::translateLegacySettings()
{
//NOTE Please remove this legacy setting translation after 2016-9-1 (+1 year after creation)
#ifdef PORTABLE_BUILD
setDeckPath("data/decks");
setReplaysPath("data/replays");
setPicsPath("data/pics");
setSoundPath("data/sounds");
return;
#endif
//Layouts
QFile layoutFile(getSettingsPath()+"layouts/deckLayout.ini");
@ -627,4 +633,4 @@ void SettingsCache::setNotifyAboutUpdate(int _notifyaboutupdate)
{
notifyAboutUpdates = _notifyaboutupdate;
settings->setValue("personal/updatenotification", notifyAboutUpdates);
}
}