diff options
| author | Tannin <devnull@localhost> | 2015-05-26 20:42:15 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-26 20:42:15 +0200 |
| commit | c05be9f5c3dc1b97d540cf9de7d99d0c0d692db7 (patch) | |
| tree | b92f2b27a2583f8791acd3c8e32c6af5a1231d1e /src/settings.cpp | |
| parent | 75714907d95503955c3187cda6295604a5b4cac4 (diff) | |
small stuff
Diffstat (limited to 'src/settings.cpp')
| -rw-r--r-- | src/settings.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 71eb37d5..88d97006 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -182,11 +182,6 @@ QString Settings::getSteamAppID() const return m_Settings.value("Settings/app_id", m_GamePlugin->steamAPPId()).toString(); } -QString Settings::getDownloadDirectory() const -{ - return getConfigurablePath("download_directory", ToQString(AppConfig::downloadPath())); -} - void Settings::setDownloadSpeed(const QString &serverName, int bytesPerSecond) { m_Settings.beginGroup("Servers"); @@ -223,7 +218,12 @@ std::map<QString, int> Settings::getPreferredServers() QString Settings::getConfigurablePath(const QString &key, const QString &def) const { - return m_Settings.value(QString("settings/") + key, qApp->property("dataPath").toString() + "/" + def).toString(); + return QDir::fromNativeSeparators(m_Settings.value(QString("settings/") + key, qApp->property("dataPath").toString() + "/" + def).toString()); +} + +QString Settings::getDownloadDirectory() const +{ + return getConfigurablePath("download_directory", ToQString(AppConfig::downloadPath())); } QString Settings::getCacheDirectory() const |
