[pim/korganizer] src/prefs: src/prefs/koprefsdialogplugins.cpp - fix sorting the plugins by name

Allen Winter <[email protected]> Tue, 4 Aug 2026 13:28:23 +0000 (UTC)
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit aecf15f6ae337876f68227ddf9ce7066c09c4afe by Allen Winter.
Committed on 04/08/2026 at 13:28.
Pushed by winterz into branch 'master'.

src/prefs/koprefsdialogplugins.cpp - fix sorting the plugins by name

M  +2    -1    src/prefs/koprefsdialogplugins.cpp

https://invent.kde.org/pim/korganizer/-/commit/aecf15f6ae337876f68227ddf9ce7066c09c4afe

diff --git a/src/prefs/koprefsdialogplugins.cpp b/src/prefs/koprefsdialogplugins.cpp
index 30e46bd7c..f6f8dd9ec 100644
--- a/src/prefs/koprefsdialogplugins.cpp
+++ b/src/prefs/koprefsdialogplugins.cpp
@@ -150,7 +150,8 @@ void KOPrefsDialogPlugins::usrReadConfig()
     }
 
     mDecorations->setExpanded(true);
-    mTreeWidget->sortItems(1, Qt::DescendingOrder);
+    mTreeWidget->setSortingEnabled(true);
+    mTreeWidget->sortByColumn(0, Qt::AscendingOrder);
 
     const auto monthViewTop = KOPrefs::instance()->decorationsAtMonthViewTop();
     mDecorationsAtMonthViewTop = QSet<QString>(monthViewTop.begin(), monthViewTop.end());