diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index 22205a49b..5f3a596fc 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -448,7 +448,6 @@ QMessageBox::StandardButton RDDialog::messageBoxChecked(QMessageBox::Icon icon, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) { - bool isChecked = checked; QMessageBox::StandardButton ret = defaultButton; // if we're already on the right thread, this boils down to a function call @@ -457,11 +456,10 @@ QMessageBox::StandardButton RDDialog::messageBoxChecked(QMessageBox::Icon icon, mb.setDefaultButton(defaultButton); mb.setCheckBox(checkBox); show(&mb); - isChecked = mb.checkBox()->isChecked(); + checked = mb.checkBox()->isChecked(); ret = mb.standardButton(mb.clickedButton()); }); - checked = isChecked; return ret; }