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:
parent
ab6ca15afc
commit
5393acb514
|
@ -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()));
|
||||
|
|
|
@ -162,6 +162,7 @@ void AdBlockManager::rulesUpdated()
|
|||
Settings settings;
|
||||
settings.beginGroup("AdBlock");
|
||||
settings.setValue("lastUpdate", QDateTime::currentDateTime());
|
||||
settings.endGroup();
|
||||
|
||||
emit rulesChanged();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user