aboutsummaryrefslogtreecommitdiff
path: root/lumina-search/ConfigUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-search/ConfigUI.cpp')
-rw-r--r--lumina-search/ConfigUI.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lumina-search/ConfigUI.cpp b/lumina-search/ConfigUI.cpp
index 25c12246..ada82946 100644
--- a/lumina-search/ConfigUI.cpp
+++ b/lumina-search/ConfigUI.cpp
@@ -59,10 +59,7 @@ void ConfigUI::on_tool_adddirs_clicked(){
}
void ConfigUI::on_tool_rmdir_clicked(){
- QList<QListWidgetItem*> sel = ui->list_excludes->selectedItems();
- for(int i=0; i<sel.length(); i++){
- ui->list_excludes->removeItemWidget(sel[i]);
- }
+ qDeleteAll(ui->list_excludes->selectedItems());
}
void ConfigUI::on_list_excludes_itemSelectionChanged(){
bgstack15