We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f0395 commit 075a69fCopy full SHA for 075a69f
src/utils/screenshotsaver.cpp
@@ -260,8 +260,8 @@ bool saveToFilesystemGUI(const QPixmap& capture)
260
}
261
262
if (okay) {
263
- QString pathNoFile =
264
- savePath.left(savePath.lastIndexOf(QDir::separator()));
+ // Don't use QDir::separator() here, as Qt internally always uses '/'
+ QString pathNoFile = savePath.left(savePath.lastIndexOf('/'));
265
266
ConfigHandler().setSavePath(pathNoFile);
267
0 commit comments