Browse Source

Use standard folder icon for open file behavior on Windows. Closes #7880.

adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
c5d99a12f3
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/gui/fspathedit.cpp

4
src/gui/fspathedit.cpp

@ -154,7 +154,9 @@ void FileSystemPathEdit::FileSystemPathEditPrivate::modeChanged()
switch (m_mode) { switch (m_mode) {
case FileSystemPathEdit::Mode::FileOpen: case FileSystemPathEdit::Mode::FileOpen:
case FileSystemPathEdit::Mode::FileSave: case FileSystemPathEdit::Mode::FileSave:
pixmap = QStyle::SP_DialogOpenButton; #ifdef Q_OS_WIN
pixmap = QStyle::SP_DirOpenIcon;
#endif
showDirsOnly = false; showDirsOnly = false;
break; break;
case FileSystemPathEdit::Mode::DirectoryOpen: case FileSystemPathEdit::Mode::DirectoryOpen:

Loading…
Cancel
Save