mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Don't add trashSettingsPage to m_pages if null
Otherwise we might crash in applySettings() or restoreDefaults()
This commit is contained in:
parent
f7770c60b1
commit
7fce8f0e9b
|
@ -105,7 +105,9 @@ DolphinSettingsDialog::DolphinSettingsDialog(const QUrl& url, QWidget* parent) :
|
|||
m_pages.append(viewSettingsPage);
|
||||
m_pages.append(navigationSettingsPage);
|
||||
m_pages.append(servicesSettingsPage);
|
||||
m_pages.append(trashSettingsPage);
|
||||
if (trashSettingsPage) {
|
||||
m_pages.append(trashSettingsPage);
|
||||
}
|
||||
m_pages.append(generalSettingsPage);
|
||||
|
||||
const KConfigGroup dialogConfig(KSharedConfig::openConfig(QStringLiteral("dolphinrc")), "SettingsDialog");
|
||||
|
|
Loading…
Reference in a new issue