diff options
| author | Méven Car <[email protected]> | 2023-08-28 10:32:35 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-08-28 10:36:37 +0200 |
| commit | 1318f16fd7b84de79c04eb468d61e1c9b7b52e15 (patch) | |
| tree | 430c477f6d9229eede00ece60d11b09be3b498cc /src/settings/contextmenu | |
| parent | a2e888d9a03add380c113c0f5edff5391e90a358 (diff) | |
Clean obsolete ifdefs since dolphin requires KF 5.101+
Diffstat (limited to 'src/settings/contextmenu')
| -rw-r--r-- | src/settings/contextmenu/contextmenusettingspage.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/settings/contextmenu/contextmenusettingspage.cpp b/src/settings/contextmenu/contextmenusettingspage.cpp index 03e55ba32..fa3d0b256 100644 --- a/src/settings/contextmenu/contextmenusettingspage.cpp +++ b/src/settings/contextmenu/contextmenusettingspage.cpp @@ -206,24 +206,15 @@ void ContextMenuSettingsPage::applySettings() VersionControlSettings::self()->save(); if (!laterSelected) { -#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0) KMessageBox::ButtonCode promptRestart = KMessageBox::questionTwoActions(window(), -#else - KMessageBox::ButtonCode promptRestart = - KMessageBox::questionYesNo(window(), -#endif i18nc("@info", "Dolphin must be restarted to apply the " "updated version control system settings."), i18nc("@info", "Restart now?"), KGuiItem(QApplication::translate("KStandardGuiItem", "&Restart"), QStringLiteral("dialog-restart")), KGuiItem(QApplication::translate("KStandardGuiItem", "&Later"), QStringLiteral("dialog-later"))); -#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0) if (promptRestart == KMessageBox::ButtonCode::PrimaryAction) { -#else - if (promptRestart == KMessageBox::ButtonCode::Yes) { -#endif Dolphin::openNewWindow(); qApp->quit(); } else { |
