Commit 181bded7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend against kf5.94

parent 1e3a91d8
Pipeline #177047 passed with stage
in 2 minutes and 32 seconds
......@@ -168,11 +168,6 @@ KNotePrintConfig::KNotePrintConfig(QWidget *parent, const QVariantList &args)
void KNotePrintConfig::slotDownloadNewThemes()
{
#if KNEWSTUFFCORE_VERSION < QT_VERSION_CHECK(5, 94, 0)
if (!KNS3::QtQuickDialogWrapper(QStringLiteral("kwinswitcher.knsrc")).exec().isEmpty()) {
mSelectTheme->loadThemes();
}
#else
auto newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("kwinswitcher.knsrc"));
connect(newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, this, [newStuffDialog, this]() {
if (!newStuffDialog->changedEntries().isEmpty()) {
......@@ -181,7 +176,6 @@ void KNotePrintConfig::slotDownloadNewThemes()
newStuffDialog->deleteLater();
});
newStuffDialog->open();
#endif
}
void KNotePrintConfig::slotThemeChanged()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment