mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Prevent crash in Windows
Summary: https://phabricator.kde.org/D25335#664304 Reviewers: #dolphin, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D29470
This commit is contained in:
parent
e3c03e466e
commit
5936492ab6
|
@ -153,11 +153,13 @@ ViewSettingsTab::ViewSettingsTab(Mode mode, QWidget* parent) :
|
|||
break;
|
||||
case DetailsMode:
|
||||
connect(m_expandableFolders, &QCheckBox::toggled, this, &ViewSettingsTab::changed);
|
||||
#ifndef Q_OS_WIN
|
||||
connect(m_recursiveDirectorySizeLimit, QOverload<int>::of(&QSpinBox::valueChanged), this, &ViewSettingsTab::changed);
|
||||
connect(m_numberOfItems, &QRadioButton::toggled, this, &ViewSettingsTab::changed);
|
||||
connect(m_sizeOfContents, &QRadioButton::toggled, this, [=]() {
|
||||
m_recursiveDirectorySizeLimit->setEnabled(m_sizeOfContents->isChecked());
|
||||
});
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -183,8 +185,10 @@ void ViewSettingsTab::applySettings()
|
|||
break;
|
||||
case DetailsMode:
|
||||
DetailsModeSettings::setExpandableFolders(m_expandableFolders->isChecked());
|
||||
#ifndef Q_OS_WIN
|
||||
DetailsModeSettings::setDirectorySizeCount(m_numberOfItems->isChecked());
|
||||
DetailsModeSettings::setRecursiveDirectorySizeLimit(m_recursiveDirectorySizeLimit->value());
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue