mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Instantiate SearchPluginManager with other application components
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user