Restore the state of QObject::blockSignals()

This commit is contained in:
Roberto Raggi
2009-10-05 12:45:14 +02:00
parent cbf24ab6f4
commit 6ccc08fb40
4 changed files with 10 additions and 10 deletions

View File

@@ -633,9 +633,9 @@ void HelpPlugin::extensionsInitialized()
hc.addCustomFilter(tr("Unfiltered"), QStringList());
hc.setCustomValue(key, 1);
}
m_helpEngine->blockSignals(true);
bool blocked = m_helpEngine->blockSignals(true);
m_helpEngine->setCurrentFilter(tr("Unfiltered"));
m_helpEngine->blockSignals(false);
m_helpEngine->blockSignals(blocked);
needsSetup = true;
}