From 5fde0ad90d6bbf4dd8642ba9e88f61bd7f424d45 Mon Sep 17 00:00:00 2001 From: lizj Date: Mon, 10 May 2021 17:47:24 +0800 Subject: [PATCH] Fix incorrect backcolorPick button state after cancellation --- qrenderdoc/Windows/TextureViewer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index 24492eef7..1710d1fc3 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -3704,7 +3704,10 @@ void TextureViewer::on_backcolorPick_clicked() QColor col = QColorDialog::getColor(Qt::black, this, tr("Choose background colour")); if(!col.isValid()) + { + ui->backcolorPick->setChecked(!ui->checkerBack->isChecked()); return; + } col = col.toRgb(); m_TexDisplay.backgroundColor = FloatVector(col.redF(), col.greenF(), col.blueF(), 1.0f);