mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Merge pull request #8003 from Chocobo1/fileicon
Use standard folder icon for open file behavior on Windows
This commit is contained in:
commit
8494c6c5d4
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue