Fix Reboot dialog for Qt6

This commit is contained in:
Gary Talent 2023-10-15 16:47:18 -05:00
parent ac7bb9c585
commit ae580a0d58

View File

@ -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.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("&No"), QMessageBox::ButtonRole::NoRole);
confirm.addButton(tr("&Yes"), QMessageBox::ButtonRole::YesRole); confirm.addButton(tr("&Yes"), QMessageBox::ButtonRole::YesRole);
if (confirm.exec() == QMessageBox::YesRole) { if (confirm.exec()) {
m_cameraClient.reboot(); m_cameraClient.reboot();
} }
}); });