mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-21 02:37:16 +01:00
Fixed a pet peeve of mine: clicking "Do not show this again" on
first-time dialog no longer immediately closes the dialog (very unexpected behavior to me).
This commit is contained in:
parent
6dedc26452
commit
d57e13002b
@ -605,10 +605,16 @@ void FWWindow::showIntroDialog()
|
||||
msg_box.addButton(tr("Watch the guide"), QMessageBox::AcceptRole);
|
||||
msg_box.addButton(QMessageBox::Close);
|
||||
|
||||
/* Hack alert! Disconnect signals from the checkbox so that
|
||||
QMessageBox doesn't know when it gets clicked. We check it
|
||||
directly ourselves to see what state it's in when the user
|
||||
clicks "close" or "watch". */
|
||||
cb.disconnect();
|
||||
|
||||
msg_box.setDefaultButton(watch_button);
|
||||
msg_box.exec();
|
||||
|
||||
if (msg_box.clickedButton() == &cb)
|
||||
if (cb.isChecked())
|
||||
{
|
||||
st->setIntroDialogEnabled(false);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user