Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 48936e24 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to delete several custom rules

parent c2b8774a
......@@ -151,11 +151,18 @@ LoggingCategory::List CustomDebugSettingsPage::rules()
void CustomDebugSettingsPage::slotRemoveRules()
QListWidgetItem *item = mListWidget->currentItem();
if (item) {
if (KMessageBox::Yes == KMessageBox::warningYesNo(this, i18n("Do you want to remove this rule \"%1\"?", item->text()))) {
delete item;
QList<QListWidgetItem *> lst = mListWidget->selectedItems();
if (lst.isEmpty()) {
const QString str = i18np("Do you want to remove this rule?", "Do you want to remove these %1 rules?", lst.count());
if (KMessageBox::No == KMessageBox::warningYesNo(this, str)) {
for (int i = 0; i < lst.count(); ++i) {
QListWidgetItem *item =;
delete item;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment