summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-20 03:12:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-20 03:12:44 +0200
commit8459e02d05b79a524a8942c28044b271ca17084a (patch)
treec5495b047682771e3c74f711dae87b9b8a91f735
parentFlash loading fix (diff)
downloadrekonq-8459e02d05b79a524a8942c28044b271ca17084a.tar.xz
Fixing save setting crash
-rw-r--r--src/settings.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 57793888..de15708a 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -232,8 +232,11 @@ void SettingsDialog::saveSettings()
QStringList names, urls;
for(int i=0; i<9; ++i)
{
- names << t->item(i,0)->text();
- urls << t->item(i,1)->text();
+ if(t->item(i,0))
+ {
+ names << t->item(i,0)->text();
+ urls << t->item(i,1)->text();
+ }
}
ReKonfig::setPreviewNames(names);