diff --git a/src/duckstation-qt/gamepropertiesdialog.cpp b/src/duckstation-qt/gamepropertiesdialog.cpp index 2b76d6298..1cae9feb7 100644 --- a/src/duckstation-qt/gamepropertiesdialog.cpp +++ b/src/duckstation-qt/gamepropertiesdialog.cpp @@ -153,9 +153,9 @@ void GamePropertiesDialog::setupAdditionalUi() setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); } -void GamePropertiesDialog::showForEntry(QtHostInterface* host_interface, const GameListEntry* ge) +void GamePropertiesDialog::showForEntry(QtHostInterface* host_interface, const GameListEntry* ge, QWidget* parent) { - GamePropertiesDialog* gpd = new GamePropertiesDialog(host_interface); + GamePropertiesDialog* gpd = new GamePropertiesDialog(host_interface, parent); gpd->populate(ge); gpd->show(); gpd->onResize(); diff --git a/src/duckstation-qt/gamepropertiesdialog.h b/src/duckstation-qt/gamepropertiesdialog.h index fb2929bec..74c0def22 100644 --- a/src/duckstation-qt/gamepropertiesdialog.h +++ b/src/duckstation-qt/gamepropertiesdialog.h @@ -17,7 +17,7 @@ public: GamePropertiesDialog(QtHostInterface* host_interface, QWidget* parent = nullptr); ~GamePropertiesDialog(); - static void showForEntry(QtHostInterface* host_interface, const GameListEntry* ge); + static void showForEntry(QtHostInterface* host_interface, const GameListEntry* ge, QWidget* parent); public Q_SLOTS: void clear(); diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index e28c7d6ad..c600ec749 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -406,7 +406,7 @@ void MainWindow::onGameListContextMenuRequested(const QPoint& point, const GameL if (entry) { connect(menu.addAction(tr("Properties...")), &QAction::triggered, - [this, entry]() { GamePropertiesDialog::showForEntry(m_host_interface, entry); }); + [this, entry]() { GamePropertiesDialog::showForEntry(m_host_interface, entry, this); }); connect(menu.addAction(tr("Open Containing Directory...")), &QAction::triggered, [this, entry]() { const QFileInfo fi(QString::fromStdString(entry->path));