]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Exclude trash settings from windows
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Sun, 20 Sep 2020 08:11:37 +0000 (10:11 +0200)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Sun, 20 Sep 2020 08:11:37 +0000 (10:11 +0200)
src/settings/dolphinsettingsdialog.cpp

index a99b9c3d0963b0b00a55b93901c779557b23a0a3..0650e3d2466ef05f35e69a2dc3cd1138d99eea21 100644 (file)
@@ -80,7 +80,10 @@ DolphinSettingsDialog::DolphinSettingsDialog(const QUrl& url, QWidget* parent) :
     connect(servicesSettingsPage, &ServicesSettingsPage::changed, this, &DolphinSettingsDialog::enableApply);
 
     // Trash
-    auto* trashSettingsPage = createTrashSettingsPage(this);
+    SettingsPageBase* trashSettingsPage = nullptr;
+#ifndef Q_OS_WIN
+    trashSettingsPage = createTrashSettingsPage(this);
+#endif
     if (trashSettingsPage) {
         KPageWidgetItem* trashSettingsFrame = addPage(trashSettingsPage,
                                                      i18nc("@title:group", "Trash"));