summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-03-30 09:44:03 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-03-30 09:44:03 +0200
commit73a3dd68e9e9ffcecf9a09aceb479efccb0980ca (patch)
treef64ffb3ad75d5e5ea1f1f2005fda9429bcc8301f /src
parentMerge commit 'refs/merge-requests/110' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-73a3dd68e9e9ffcecf9a09aceb479efccb0980ca.tar.xz
fixing crash on manual rules saving
Diffstat (limited to 'src')
-rw-r--r--src/settings/adblockwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/adblockwidget.cpp b/src/settings/adblockwidget.cpp
index 39df2c36..2f431c1e 100644
--- a/src/settings/adblockwidget.cpp
+++ b/src/settings/adblockwidget.cpp
@@ -166,7 +166,7 @@ void AdBlockWidget::save()
n = listWidget->count();
for(int i = 0; i < n; ++i)
{
- QListWidgetItem *item = listWidget->takeItem(i);
+ QListWidgetItem *item = listWidget->item(i);
localRules << item->text();
}
localGroup.writeEntry( "local-rules" , localRules );