From c5d99a12f34883e786940c25f6ae172d5b28b25c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 8 Dec 2017 09:14:12 +0800 Subject: [PATCH] Use standard folder icon for open file behavior on Windows. Closes #7880. --- src/gui/fspathedit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/fspathedit.cpp b/src/gui/fspathedit.cpp index b7889763a..fbf24b0d9 100644 --- a/src/gui/fspathedit.cpp +++ b/src/gui/fspathedit.cpp @@ -154,7 +154,9 @@ void FileSystemPathEdit::FileSystemPathEditPrivate::modeChanged() switch (m_mode) { case FileSystemPathEdit::Mode::FileOpen: case FileSystemPathEdit::Mode::FileSave: - pixmap = QStyle::SP_DialogOpenButton; +#ifdef Q_OS_WIN + pixmap = QStyle::SP_DirOpenIcon; +#endif showDirsOnly = false; break; case FileSystemPathEdit::Mode::DirectoryOpen: