Manager: Fix controls in the update details dialog not working

This commit is contained in:
Alexander Babikov
2025-07-27 04:38:00 +05:00
parent 3e1c6d3dae
commit b42b735c25
4 changed files with 4 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ UpdateCheckDialog::downloadComplete(const UpdateCheck::UpdateResult &result)
return; return;
} }
const auto updateDetails = new UpdateDetails(result); const auto updateDetails = new UpdateDetails(result, this);
connect(updateDetails, &QDialog::accepted, [this] { connect(updateDetails, &QDialog::accepted, [this] {
accept(); accept();
}); });

View File

@@ -23,7 +23,7 @@
UpdateDetails:: UpdateDetails::
UpdateDetails(const UpdateCheck::UpdateResult &updateResult, QWidget *parent) : ui(new Ui::UpdateDetails) UpdateDetails(const UpdateCheck::UpdateResult &updateResult, QWidget *parent) : QDialog(parent), ui(new Ui::UpdateDetails)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowTitle("86Box Update"); setWindowTitle("86Box Update");

View File

@@ -183,7 +183,7 @@ VMManagerMainWindow::checkForUpdatesTriggered()
# ifdef RELEASE_BUILD # ifdef RELEASE_BUILD
updateChannel = UpdateCheck::UpdateChannel::Stable; updateChannel = UpdateCheck::UpdateChannel::Stable;
# endif # endif
const auto updateCheck = new UpdateCheckDialog(updateChannel); const auto updateCheck = new UpdateCheckDialog(updateChannel, this);
updateCheck->exec(); updateCheck->exec();
} }
#endif #endif

View File

@@ -51,7 +51,7 @@ private slots:
void vmmSelectionChanged(const QModelIndex &currentSelection, QProcess::ProcessState processState) const; void vmmSelectionChanged(const QModelIndex &currentSelection, QProcess::ProcessState processState) const;
void preferencesTriggered(); void preferencesTriggered();
#if EMU_BUILD_NUM != 0 #if EMU_BUILD_NUM != 0
static void checkForUpdatesTriggered(); void checkForUpdatesTriggered();
#endif #endif
void on_actionExit_triggered(); void on_actionExit_triggered();