|
@@ -192,7 +192,8 @@ bool saveToFilesystemGUI(const QPixmap& capture)
|
|
|
}
|
|
|
#endif
|
|
|
if (!config.savePathFixed()) {
|
|
|
- savePath = ShowSaveFileDialog(QObject::tr("Save screenshot"), savePath);
|
|
|
+ savePath = QDir::toNativeSeparators(
|
|
|
+ ShowSaveFileDialog(QObject::tr("Save screenshot"), savePath));
|
|
|
}
|
|
|
if (savePath == "") {
|
|
|
return okay;
|
|
@@ -211,7 +212,7 @@ bool saveToFilesystemGUI(const QPixmap& capture)
|
|
|
|
|
|
if (okay) {
|
|
|
QString pathNoFile =
|
|
|
- savePath.left(savePath.lastIndexOf(QLatin1String("/")));
|
|
|
+ savePath.left(savePath.lastIndexOf(QDir::separator()));
|
|
|
|
|
|
ConfigHandler().setSavePath(pathNoFile);
|
|
|
|