diff options
author | Ken Moore <moorekou@gmail.com> | 2015-04-17 16:22:11 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-04-17 16:22:11 -0400 |
commit | 3a336ff31d1b27d5699ac5f5bcffb1bad22f5be4 (patch) | |
tree | 07d0c98d752c8db769e21e6c468a97a38a36a413 | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
parent | Fix a problem when removing items from the exclude list of lumina-search (diff) | |
download | lumina-3a336ff31d1b27d5699ac5f5bcffb1bad22f5be4.tar.gz lumina-3a336ff31d1b27d5699ac5f5bcffb1bad22f5be4.tar.bz2 lumina-3a336ff31d1b27d5699ac5f5bcffb1bad22f5be4.zip |
Merge pull request #87 from william-os4y/search
Fix a problem when removing items from the exclude list of lumina-search
-rw-r--r-- | lumina-search/ConfigUI.cpp | 5 |
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(){ |