[pim/korganizer] src: Use KCalendarCore::Exception::errorMessage

Volker Krause <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 3b2c11903f54102f9dc8e07db0d0970d7df52599 by Volker Krause.
Committed on 09/08/2026 at 05:38.
Pushed by vkrause into branch 'master'.

Use KCalendarCore::Exception::errorMessage

This removes the last use of KCalUtils from KOrganizer itself, just two
more uses remain in the Kontact plugins.

M  +7    -0    src/calendarview.cpp

https://invent.kde.org/pim/korganizer/-/commit/3b2c11903f54102f9dc8e07db0d0970d7df52599

diff --git a/src/calendarview.cpp b/src/calendarview.cpp
index 3dd574236..a785795f8 100644
--- a/src/calendarview.cpp
+++ b/src/calendarview.cpp
@@ -61,10 +61,13 @@
 #include <IncidenceEditor/IndividualMailComponentFactory>
 
 #include <KCalendarCore/CalFilter>
+#include <KCalendarCore/Exceptions>
 #include <KCalendarCore/FileStorage>
 #include <KCalendarCore/ICalFormat>
 
+#if KCALENDARCORE_VERSION < QT_VERSION_CHECK(6, 30, 0)
 #include <KCalUtils/Stringify>
+#endif
 
 #include <TextAddonsWidgets/WhatsNewNgDialog>
 
@@ -1894,7 +1897,11 @@ void CalendarView::exportICalendar()
         if (!storage.save()) {
             QString errmess;
             if (format->exception()) {
+#if KCALENDARCORE_VERSION < QT_VERSION_CHECK(6, 30, 0)
                 errmess = KCalUtils::Stringify::errorMessage(*format->exception());
+#else
+                errmess = format->exception()->errorMessage();
+#endif
             } else {
                 errmess = i18nc("@info save failure cause unknown", "Reason unknown");
             }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.