From 2be355cac1bebdb51ac59fc59439c9f35d7f3765 Mon Sep 17 00:00:00 2001
From: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
Date: Wed, 26 Aug 2026 20:30:39 -0300
Subject: KOrganizer: refresh categories in todo editor
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Propagate category configuration updates to the general page of the todo editor.

This makes the todo editor behave consistently with the event editor and avoids the more invasive notification mechanism proposed in TDE/tdepim#97.

Signed-off-by: Sebastião Guerra <sebastiao.luiz.guerra@gmail.com>
---
 korganizer/kotodoeditor.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/korganizer/kotodoeditor.cpp b/korganizer/kotodoeditor.cpp
index 3a41d1ff..f169b823 100644
--- a/korganizer/kotodoeditor.cpp
+++ b/korganizer/kotodoeditor.cpp
@@ -75,6 +75,8 @@ void KOTodoEditor::init()
 
   connect( mGeneral, TQ_SIGNAL( openCategoryDialog() ),
            TQ_SIGNAL( editCategories() ) );
+  connect( this, TQ_SIGNAL( updateCategoryConfig() ),
+           mGeneral, TQ_SIGNAL( updateCategoryConfig() ) );
 
   connect( mDetails, TQ_SIGNAL(updateAttendeeSummary(int)),
            mGeneral, TQ_SLOT(updateAttendeeSummary(int)) );
-- 
cgit v1.2.3

