summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.cpp')
-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);