Instantiate SearchPluginManager with other application components

This commit is contained in:
Thomas Piccirello
2018-03-08 01:10:53 -05:00
parent de8050701d
commit b2ffd6e03b
2 changed files with 4 additions and 2 deletions

View File

@@ -132,8 +132,7 @@ SearchWidget::SearchWidget(MainWindow *mainWindow)
connect(m_tabStatusChangedMapper, static_cast<void (QSignalMapper::*)(QWidget *)>(&QSignalMapper::mapped)
, this, &SearchWidget::tabStatusChanged);
// NOTE: Although SearchManager is Application-wide component now, we still create it the legacy way.
auto *searchManager = new SearchPluginManager;
auto *searchManager = SearchPluginManager::instance();
const auto onPluginChanged = [this]()
{
fillPluginComboBox();