From 6228dff809782946c075a2698895cf5fb59fd38d Mon Sep 17 00:00:00 2001 From: Megamouse Date: Mon, 26 Jun 2023 01:09:46 +0200 Subject: [PATCH] welcome_dialog: remove weird window close event --- rpcs3/rpcs3qt/welcome_dialog.cpp | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/rpcs3/rpcs3qt/welcome_dialog.cpp b/rpcs3/rpcs3qt/welcome_dialog.cpp index ca04444bfd..0c81cfed06 100644 --- a/rpcs3/rpcs3qt/welcome_dialog.cpp +++ b/rpcs3/rpcs3qt/welcome_dialog.cpp @@ -49,21 +49,18 @@ welcome_dialog::welcome_dialog(std::shared_ptr gui_settings, bool )" ).arg(gui::utils::get_link_style())); - connect(ui->i_have_read, &QCheckBox::clicked, [this, is_manual_show](bool checked) + if (!is_manual_show) { - if (is_manual_show) + connect(ui->i_have_read, &QCheckBox::clicked, [this](bool checked) { - return; - } + ui->okay->setEnabled(checked); + }); - ui->okay->setEnabled(checked); - setWindowFlag(Qt::WindowCloseButtonHint, checked); - }); - - connect(ui->do_not_show, &QCheckBox::clicked, [this](bool checked) - { - m_gui_settings->SetValue(gui::ib_show_welcome, QVariant(!checked)); - }); + connect(ui->do_not_show, &QCheckBox::clicked, [this](bool checked) + { + m_gui_settings->SetValue(gui::ib_show_welcome, QVariant(!checked)); + }); + } connect(ui->okay, &QPushButton::clicked, this, &QDialog::accept);