Skip to content

Commit 075a69f

Browse files
authored
Fix for wrong set savePath on Windows (flameshot-org#3990) (flameshot-org#3997)
1 parent 98f0395 commit 075a69f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/screenshotsaver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ bool saveToFilesystemGUI(const QPixmap& capture)
260260
}
261261

262262
if (okay) {
263-
QString pathNoFile =
264-
savePath.left(savePath.lastIndexOf(QDir::separator()));
263+
// Don't use QDir::separator() here, as Qt internally always uses '/'
264+
QString pathNoFile = savePath.left(savePath.lastIndexOf('/'));
265265

266266
ConfigHandler().setSavePath(pathNoFile);
267267

0 commit comments

Comments
 (0)