1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Fixed crash in AdBlock dialog when deleting rules.

- regression from previous AdBlock commit
This commit is contained in:
nowrep 2012-06-15 20:54:58 +02:00
parent ab6ca15afc
commit 5393acb514
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ AdBlockDialog::AdBlockDialog(QWidget* parent)
connect(addButton, SIGNAL(clicked()), this, SLOT(addCustomRule()));
connect(reloadButton, SIGNAL(clicked()), this, SLOT(updateSubscription()));
connect(search, SIGNAL(textChanged(QString)), treeWidget, SLOT(filterString(QString)));
connect(m_manager, SIGNAL(rulesChanged()), this, SLOT(refreshAfterUpdate()));
connect(m_manager->subscription(), SIGNAL(rulesUpdated()), this, SLOT(refreshAfterUpdate()));
connect(treeWidget, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextMenuRequested(QPoint)));
// QTimer::singleShot(0, this, SLOT(firstRefresh()));

View File

@ -162,6 +162,7 @@ void AdBlockManager::rulesUpdated()
Settings settings;
settings.beginGroup("AdBlock");
settings.setValue("lastUpdate", QDateTime::currentDateTime());
settings.endGroup();
emit rulesChanged();
}