diff options
Diffstat (limited to 'src/blocker/blockermanager.cpp')
-rw-r--r-- | src/blocker/blockermanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/blocker/blockermanager.cpp b/src/blocker/blockermanager.cpp index 16caa98..6e3860d 100644 --- a/src/blocker/blockermanager.cpp +++ b/src/blocker/blockermanager.cpp @@ -33,8 +33,10 @@ BlockerManager::BlockerManager(QWidget *parent) : { ui->setupUi(this); - for(QString listUrl : sSettings->value("blocker.subscriptions").toStringList()) { - BlockerSubscription *sub = new BlockerSubscription(QUrl(listUrl), this); + const QStringList subscriptions = sSettings->value("blocker.subscriptions").toStringList(); + QStringList::const_iterator i; + for(i = subscriptions.constBegin(); i != subscriptions.constEnd(); ++i) { + BlockerSubscription *sub = new BlockerSubscription(QUrl(*i), this); m_subscriptions.append(sub); ui->tabWidget->addTab(sub, sub->name()); } |