From ae580a0d58f2fe212f265a39807409b4df212ea4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 15 Oct 2023 16:47:18 -0500 Subject: [PATCH] Fix Reboot dialog for Qt6 --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 996463a..63501e3 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -128,7 +128,7 @@ void MainWindow::setupMenu() { confirm.setText(tr("Are you sure you want to reboot the camera? This will take about 20 seconds.")); confirm.addButton(tr("&No"), QMessageBox::ButtonRole::NoRole); confirm.addButton(tr("&Yes"), QMessageBox::ButtonRole::YesRole); - if (confirm.exec() == QMessageBox::YesRole) { + if (confirm.exec()) { m_cameraClient.reboot(); } });