From 47fbaf061f32c47ccd5dbbf8b19d695222b21795 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Tue, 23 Jun 2020 09:54:09 +0200 Subject: Example: Connect to correct slot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTBUG-85009 Change-Id: Id4db9a20e6c92ae86c764abb723fbe4ad426f2f8 Reviewed-by: MÃ¥rten Nordheim (cherry picked from commit f7f50557023f19780f6d08514270b978ca532975) Reviewed-by: Qt Cherry-pick Bot --- examples/widgets/mainwindows/mainwindow/colorswatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/widgets/mainwindows/mainwindow/colorswatch.cpp b/examples/widgets/mainwindows/mainwindow/colorswatch.cpp index 5662518ddc..5df3542e25 100644 --- a/examples/widgets/mainwindows/mainwindow/colorswatch.cpp +++ b/examples/widgets/mainwindows/mainwindow/colorswatch.cpp @@ -233,7 +233,7 @@ void ColorDock::changeSizeHints() QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this); connect(buttonBox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject); - connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::reject); + connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept); topLayout->addWidget(buttonBox); -- cgit v1.2.3