mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
committed by
GitHub
parent
41a38428fc
commit
f8a304abdc
@@ -194,7 +194,7 @@ Application::~Application()
|
||||
}
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
QPointer<MainWindow> Application::mainWindow()
|
||||
MainWindow *Application::mainWindow()
|
||||
{
|
||||
return m_window;
|
||||
}
|
||||
@@ -611,7 +611,7 @@ int Application::exec(const QStringList ¶ms)
|
||||
TorrentFilesWatcher::initInstance();
|
||||
|
||||
#ifndef DISABLE_WEBUI
|
||||
m_webui = new WebUI;
|
||||
m_webui = new WebUI(this);
|
||||
#ifdef DISABLE_GUI
|
||||
if (m_webui->isErrored())
|
||||
return 1;
|
||||
@@ -658,7 +658,7 @@ int Application::exec(const QStringList ¶ms)
|
||||
#endif // DISABLE_WEBUI
|
||||
#else
|
||||
UIThemeManager::initInstance();
|
||||
m_window = new MainWindow;
|
||||
m_window = new MainWindow(this);
|
||||
#endif // DISABLE_GUI
|
||||
|
||||
m_running = true;
|
||||
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
void setMemoryWorkingSetLimit(int size) override;
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
QPointer<MainWindow> mainWindow() override;
|
||||
MainWindow *mainWindow() override;
|
||||
#endif
|
||||
|
||||
private slots:
|
||||
@@ -167,7 +167,7 @@ private:
|
||||
SettingValue<int> m_storeMemoryWorkingSetLimit;
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
QPointer<MainWindow> m_window;
|
||||
MainWindow *m_window = nullptr;
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_WEBUI
|
||||
|
||||
Reference in New Issue
Block a user