mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Fix nullptr crash on Windows
This commit is contained in:
parent
771b9c8fc2
commit
e42f42fa27
|
@ -237,14 +237,16 @@ void ViewSettingsTab::loadSettings()
|
|||
break;
|
||||
case DetailsMode:
|
||||
m_expandableFolders->setChecked(DetailsModeSettings::expandableFolders());
|
||||
if (DetailsModeSettings::directorySizeCount()) {
|
||||
m_numberOfItems->setChecked(true);
|
||||
m_recursiveDirectorySizeLimit->setEnabled(false);
|
||||
} else {
|
||||
m_sizeOfContents->setChecked(true);
|
||||
m_recursiveDirectorySizeLimit->setEnabled(true);
|
||||
}
|
||||
m_recursiveDirectorySizeLimit->setValue(DetailsModeSettings::recursiveDirectorySizeLimit());
|
||||
#ifndef Q_OS_WIN
|
||||
if (DetailsModeSettings::directorySizeCount()) {
|
||||
m_numberOfItems->setChecked(true);
|
||||
m_recursiveDirectorySizeLimit->setEnabled(false);
|
||||
} else {
|
||||
m_sizeOfContents->setChecked(true);
|
||||
m_recursiveDirectorySizeLimit->setEnabled(true);
|
||||
}
|
||||
m_recursiveDirectorySizeLimit->setValue(DetailsModeSettings::recursiveDirectorySizeLimit());
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue