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
This commit is contained in:
Luca Beltrame 2023-01-09 21:49:01 +00:00 committed by Git OBS Bridge
parent b8384ac5fa
commit 431bb70c08
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,42 @@
From 526d04db82d4b65c61b4b0f607c4b2ffa8a02f3d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?K=C3=A5re=20S=C3=A4rs?= <kare.sars@iki.fi>
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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 9 21:05:14 UTC 2023 - Fabian Vogt <fabian@ritter-vogt.de>
- 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 <christophe@krop.fr>

View File

@ -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)