From 8c410aff33395daf607ae8a1c62b8be70943ba4d Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 16 Jun 2020 21:30:24 +0200 Subject: Clean notification of userInterfaceInitialized between MainWindow and OrganizerCore. --- src/processrunner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/processrunner.cpp') diff --git a/src/processrunner.cpp b/src/processrunner.cpp index 91443750..3ea40da2 100644 --- a/src/processrunner.cpp +++ b/src/processrunner.cpp @@ -520,7 +520,7 @@ ProcessRunner& ProcessRunner::setFromFile( QWidget* parent, const QFileInfo& targetInfo) { if (!parent && m_ui) { - parent = m_ui->qtWidget(); + parent = m_ui->mainWindow(); } // if the file is a .exe, start it directly; if it's anything else, ask the @@ -767,7 +767,7 @@ std::optional ProcessRunner::runBinary() } // parent widget used for any dialog popped up while checking for things - QWidget* parent = (m_ui ? m_ui->qtWidget() : nullptr); + QWidget* parent = (m_ui ? m_ui->mainWindow() : nullptr); const auto* game = m_core.managedGame(); auto& settings = m_core.settings(); -- cgit v1.3.1