diff --git a/src/gui/fspathedit.cpp b/src/gui/fspathedit.cpp index 146ad965c..be8e15c16 100644 --- a/src/gui/fspathedit.cpp +++ b/src/gui/fspathedit.cpp @@ -155,26 +155,21 @@ QString FileSystemPathEdit::FileSystemPathEditPrivate::dialogCaptionOrDefault() void FileSystemPathEdit::FileSystemPathEditPrivate::modeChanged() { - QStyle::StandardPixmap pixmap = QStyle::SP_DialogOpenButton; bool showDirsOnly = false; switch (m_mode) { case FileSystemPathEdit::Mode::FileOpen: case FileSystemPathEdit::Mode::FileSave: -#ifdef Q_OS_WIN - pixmap = QStyle::SP_DirOpenIcon; -#endif showDirsOnly = false; break; case FileSystemPathEdit::Mode::DirectoryOpen: case FileSystemPathEdit::Mode::DirectorySave: - pixmap = QStyle::SP_DirOpenIcon; showDirsOnly = true; break; default: throw std::logic_error("Unknown FileSystemPathEdit mode"); } - m_browseAction->setIcon(QApplication::style()->standardIcon(pixmap)); + m_browseAction->setIcon(QApplication::style()->standardIcon(QStyle::SP_DirOpenIcon)); m_editor->completeDirectoriesOnly(showDirsOnly); m_validator->setExistingOnly(m_mode != FileSystemPathEdit::Mode::FileSave); diff --git a/src/gui/optionsdialog.ui b/src/gui/optionsdialog.ui index 4481efa11..3beb182bb 100644 --- a/src/gui/optionsdialog.ui +++ b/src/gui/optionsdialog.ui @@ -1457,6 +1457,9 @@ Manual: Various torrent properties (e.g. save path) must be assigned manually + + Set to 0 to let your system pick an unused port + Any @@ -1570,9 +1573,6 @@ Manual: Various torrent properties (e.g. save path) must be assigned manually Maximum number of upload slots per torrent: - - false - @@ -1580,9 +1580,6 @@ Manual: Various torrent properties (e.g. save path) must be assigned manually Global maximum number of upload slots: - - false - @@ -1668,9 +1665,6 @@ Manual: Various torrent properties (e.g. save path) must be assigned manually false - - - @@ -3367,11 +3361,7 @@ Use ';' to split multiple entries. Can use wildcard '*'. - - - 50 - - + @@ -3382,9 +3372,6 @@ Use ';' to split multiple entries. Can use wildcard '*'. - - 50 - QLineEdit::Password diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index ec7349193..f6c35c6ef 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -231,7 +231,7 @@ QBT_TR(Listening Port)QBT_TR[CONTEXT=OptionsDialog]
- +