mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 12:48:04 -06:00
committed by
GitHub
parent
e4313d6651
commit
dcf3e97291
@@ -53,6 +53,7 @@
|
||||
#include "base/search/searchpluginmanager.h"
|
||||
#include "base/utils/foreignapps.h"
|
||||
#include "gui/desktopintegration.h"
|
||||
#include "gui/interfaces/iguiapplication.h"
|
||||
#include "gui/mainwindow.h"
|
||||
#include "gui/uithememanager.h"
|
||||
#include "pluginselectdialog.h"
|
||||
@@ -84,8 +85,7 @@ namespace
|
||||
}
|
||||
|
||||
SearchWidget::SearchWidget(IGUIApplication *app, MainWindow *mainWindow)
|
||||
: QWidget(mainWindow)
|
||||
, GUIApplicationComponent(app)
|
||||
: GUIApplicationComponent(app, mainWindow)
|
||||
, m_ui {new Ui::SearchWidget()}
|
||||
, m_mainWindow {mainWindow}
|
||||
{
|
||||
@@ -347,7 +347,7 @@ void SearchWidget::on_searchButton_clicked()
|
||||
auto *searchHandler = SearchPluginManager::instance()->startSearch(pattern, selectedCategory(), plugins);
|
||||
|
||||
// Tab Addition
|
||||
auto *newTab = new SearchJobWidget(searchHandler, this);
|
||||
auto *newTab = new SearchJobWidget(searchHandler, app(), this);
|
||||
m_allTabs.append(newTab);
|
||||
|
||||
QString tabName = pattern;
|
||||
|
||||
Reference in New Issue
Block a user