https://bugs.kde.org/show_bug.cgi?id=484251
Bug ID: 484251 Summary: Dismissing KMessageDialog via Esc key emits QDialog::finished twice Classification: Frameworks and Libraries Product: frameworks-kwidgetsaddons Version: 6.0.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: cf...@kde.org Reporter: nicolas.fe...@gmx.de CC: kdelibs-b...@kde.org Target Milestone: --- Running KMessageDialog *dialog = new KMessageDialog(KMessageDialog::WarningTwoActionsCancel, QStringLiteral("Hello")); QObject::connect(dialog, &QDialog::finished, [](int result){ qWarning() << "res" << result; }); dialog->show(); and then pressing Esc to close the dialog will print twice. One time with result QDialogButtonBox::Cancel, another time with 0. This does not happen when clicking the cancel button SOFTWARE/OS VERSIONS KDE Plasma Version: 6.0 KDE Frameworks Version: 6.0 Qt Version: 6.7 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.