]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Merge two relevant ifdef blocks
authorAhmad Samir <a.samirh78@gmail.com>
Fri, 6 May 2022 15:26:15 +0000 (17:26 +0200)
committerAhmad Samir <a.samirh78@gmail.com>
Tue, 31 May 2022 14:25:13 +0000 (14:25 +0000)
GIT_SILENT

src/settings/contextmenu/contextmenusettingspage.cpp

index 97bb39ff099d05153947b7aef40da10f0a297883..2d6c9279afdfb3b1b3d2c12c432f4e51d4e05c36 100644 (file)
@@ -84,6 +84,10 @@ ContextMenuSettingsPage::ContextMenuSettingsPage(QWidget* parent,
     m_listView->setVerticalScrollMode(QListView::ScrollPerPixel);
     connect(m_listView, &QListView::clicked, this, &ContextMenuSettingsPage::changed);
 
+    topLayout->addWidget(label);
+    topLayout->addWidget(m_searchLineEdit);
+    topLayout->addWidget(m_listView);
+
 #ifndef Q_OS_WIN
     auto *downloadButton = new KNS3::Button(i18nc("@action:button", "Download New Services..."),
                                                   QStringLiteral("servicemenu.knsrc"),
@@ -94,13 +98,6 @@ ContextMenuSettingsPage::ContextMenuSettingsPage(QWidget* parent,
                loadServices();
            }
     });
-
-#endif
-
-    topLayout->addWidget(label);
-    topLayout->addWidget(m_searchLineEdit);
-    topLayout->addWidget(m_listView);
-#ifndef Q_OS_WIN
     topLayout->addWidget(downloadButton);
 #endif