Created attachment 128025 [details] Rss tree displays wrongly created fake item SUMMARY If you create new folder and add an rss item into group, Akregator displays empty row along with rss item. STEPS TO REPRODUCE 1. Install Akregator 2. Create folder 3. Add rss feed OBSERVED RESULT Folder contains two items, second one is empty and can't be edited or removed EXPECTED RESULT Single rss item in the folder SOFTWARE/OS VERSIONS Operating System: KDE neon 5.18 KDE Plasma Version: 5.18.4 KDE Frameworks Version: 5.69.0 Qt Version: 5.14.2 Kernel Version: 5.3.0-51-generic OS Type: 64-bit ADDITIONAL INFORMATION
Empty item is gone after application restart
A possibly relevant merge request was started @ https://invent.kde.org/pim/akregator/-/merge_requests/57
Git commit 0c869e02caea41421d6a54feb2b03e3ec3aa9030 by Carl Schwan, on behalf of Wendi Gan. Committed on 23/12/2024 at 08:54. Pushed by carlschwan into branch 'master'. Fix extra empty line when adding a new feed When a new folder is created and a feed or folder is inserted into it, an extra empty line appears. This happens because, in Folder::insertChild and Folder::prependChild, the node is added to m_children first. If the folder is newly created, during SubscriptionListModel::subscriptionAdded, QSortFilterProxyModelPrivate::create_mapping calls SubscriptionListModel::rowCount, which counts one extra row, leading to an extra empty line. This commit modifies rowCount to decrement by 1 during insertion. Related: bug 407935, bug 412215 M +9 -2 src/subscription/subscriptionlistmodel.cpp M +1 -0 src/subscription/subscriptionlistmodel.h https://invent.kde.org/pim/akregator/-/commit/0c869e02caea41421d6a54feb2b03e3ec3aa9030