Fixed crash in AdBlock dialog when deleting rules.

- regression from previous AdBlock commit
remotes/origin/falkon
nowrep 14 years ago
parent ab6ca15afc
commit 5393acb514
  1. 2
      src/lib/adblock/adblockdialog.cpp
  2. 1
      src/lib/adblock/adblockmanager.cpp

@ -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…
Cancel
Save