From 431bb70c086e67d2b91396bd56976fe3941a16e9b69d21f8098555ffb878cab8 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Mon, 9 Jan 2023 21:49:01 +0000 Subject: [PATCH] Accepting request 1057163 from home:Vogtinator:boo1206984 - Add patch to fix the save button in the ctags configuration (kde#463993, boo#1206984): * 0001-Fix-settings-saving-regression-in-CTags-plugin.patch OBS-URL: https://build.opensuse.org/request/show/1057163 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kate?expand=0&rev=204 --- ...gs-saving-regression-in-CTags-plugin.patch | 42 +++++++++++++++++++ kate.changes | 7 ++++ kate.spec | 2 + 3 files changed, 51 insertions(+) create mode 100644 0001-Fix-settings-saving-regression-in-CTags-plugin.patch diff --git a/0001-Fix-settings-saving-regression-in-CTags-plugin.patch b/0001-Fix-settings-saving-regression-in-CTags-plugin.patch new file mode 100644 index 0000000..41dd98b --- /dev/null +++ b/0001-Fix-settings-saving-regression-in-CTags-plugin.patch @@ -0,0 +1,42 @@ +From 526d04db82d4b65c61b4b0f607c4b2ffa8a02f3d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?K=C3=A5re=20S=C3=A4rs?= +Date: Sun, 8 Jan 2023 22:11:24 +0200 +Subject: [PATCH] Fix settings saving regression in CTags plugin. + +BUG: 463993 +FIXED-IN: 22.12.2 +--- + addons/kate-ctags/kate_ctags_plugin.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/addons/kate-ctags/kate_ctags_plugin.cpp b/addons/kate-ctags/kate_ctags_plugin.cpp +index c878f5515..fc655bd01 100644 +--- a/addons/kate-ctags/kate_ctags_plugin.cpp ++++ b/addons/kate-ctags/kate_ctags_plugin.cpp +@@ -73,6 +73,7 @@ KateCTagsConfigPage::KateCTagsConfigPage(QWidget *parent, KateCTagsPlugin *plugi + { + m_confUi.setupUi(this); + m_confUi.cmdEdit->setText(DEFAULT_CTAGS_CMD); ++ connect(m_confUi.cmdEdit, &QLineEdit::textEdited, this, &KateCTagsConfigPage::changed); + + m_confUi.addButton->setToolTip(i18n("Add a directory to index.")); + m_confUi.addButton->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); +@@ -173,6 +174,7 @@ void KateCTagsConfigPage::addGlobalTagTarget() + for (int i = 0; i < urls.size(); i++) { + if (!listContains(urls[i])) { + new QListWidgetItem(urls[i], m_confUi.targetList); ++ Q_EMIT changed(); + } + } + } +@@ -181,6 +183,7 @@ void KateCTagsConfigPage::addGlobalTagTarget() + void KateCTagsConfigPage::delGlobalTagTarget() + { + delete m_confUi.targetList->currentItem(); ++ Q_EMIT changed(); + } + + /******************************************************************/ +-- +2.39.0 + diff --git a/kate.changes b/kate.changes index bdd5370..1aa2a11 100644 --- a/kate.changes +++ b/kate.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jan 9 21:05:14 UTC 2023 - Fabian Vogt + +- Add patch to fix the save button in the ctags configuration + (kde#463993, boo#1206984): + * 0001-Fix-settings-saving-regression-in-CTags-plugin.patch + ------------------------------------------------------------------- Tue Jan 3 10:19:41 UTC 2023 - Christophe Marin diff --git a/kate.spec b/kate.spec index 5ae2a2e..b09578d 100644 --- a/kate.spec +++ b/kate.spec @@ -33,6 +33,8 @@ Source2: applications.keyring %endif # PATCH-FIX-OPENSUSE Patch0: 0001-Defuse-root-block.patch +# PATCH-FIX-UPSTREAM +Patch1: 0001-Fix-settings-saving-regression-in-CTags-plugin.patch BuildRequires: libgit2-devel BuildRequires: cmake(KF5Activities) BuildRequires: cmake(KF5Config)