Modifier the data application path

preferencesAboutTextFull
Claudio Valerio 14 years ago
parent fd024fc35e
commit 1c62ce54ae
  1. 5
      src/core/UBSettings.cpp
  2. 2
      src/transition/UniboardSankoreTransition.cpp

@ -731,8 +731,9 @@ QString UBSettings::uniboardDataDirectory()
// ", defaulting to " + UBDesktopServices::storageLocation(QDesktopServices::DataLocation);
}
}
return UBDesktopServices::storageLocation(QDesktopServices::DataLocation);
QString qtDataPath = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation));
qtDataPath.replace("/Sankore 3.1", "");
return qtDataPath;
}

@ -7,7 +7,7 @@ UniboardSankoreTransition::UniboardSankoreTransition(QObject *parent) :
QObject(parent)
{
mUniboardSourceDirectory = UBDesktopServices::storageLocation(QDesktopServices::DataLocation);
mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Mnemis/Uniboard");
mUniboardSourceDirectory.replace("Sankore", "Mnemis/Uniboard");
}
bool UniboardSankoreTransition::backupUniboardDirectory()

Loading…
Cancel
Save