diff options
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r-- | rbutil/rbutilqt/base/utils.cpp | 2 | ||||
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp index 1962df2a16..d52eba4250 100644 --- a/rbutil/rbutilqt/base/utils.cpp +++ b/rbutil/rbutilqt/base/utils.cpp | |||
@@ -116,7 +116,7 @@ QString Utils::filesystemName(QString path) | |||
116 | #if defined(Q_OS_WIN32) | 116 | #if defined(Q_OS_WIN32) |
117 | wchar_t volname[MAX_PATH+1]; | 117 | wchar_t volname[MAX_PATH+1]; |
118 | bool res = GetVolumeInformationW((LPTSTR)path.utf16(), volname, MAX_PATH+1, | 118 | bool res = GetVolumeInformationW((LPTSTR)path.utf16(), volname, MAX_PATH+1, |
119 | NULL, NULL, NULL, NULL, NULL); | 119 | NULL, NULL, NULL, NULL, 0); |
120 | if(res) { | 120 | if(res) { |
121 | name = QString::fromWCharArray(volname); | 121 | name = QString::fromWCharArray(volname); |
122 | } | 122 | } |
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index 4ce2acb5e6..7dfd325255 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp | |||
@@ -278,7 +278,7 @@ void Config::setUserSettings() | |||
278 | 278 | ||
279 | // devices tab | 279 | // devices tab |
280 | refreshMountpoint(); | 280 | refreshMountpoint(); |
281 | mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); | 281 | mountpoint = QDir::toNativeSeparators(RbSettings::value(RbSettings::Mountpoint).toString()); |
282 | setMountpoint(mountpoint); | 282 | setMountpoint(mountpoint); |
283 | 283 | ||
284 | // cache tab | 284 | // cache tab |
@@ -426,7 +426,7 @@ void Config::updateTtsState(int index) | |||
426 | ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/dialog-error.png"))); | 426 | ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/dialog-error.png"))); |
427 | ui.testTTS->setEnabled(false); | 427 | ui.testTTS->setEnabled(false); |
428 | } | 428 | } |
429 | 429 | ||
430 | delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject, | 430 | delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject, |
431 | since that would delete the TTSBase instance on application exit*/ | 431 | since that would delete the TTSBase instance on application exit*/ |
432 | } | 432 | } |