mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-11 01:01:05 +00:00
Don't change background colour if the QColorDialog was aborted
This commit is contained in:
@@ -3104,7 +3104,7 @@ void TextureViewer::on_backcolorPick_clicked()
|
||||
QColor col = QColorDialog::getColor(Qt::black, this, tr("Choose background colour"));
|
||||
|
||||
if(!col.isValid())
|
||||
col = QColor(0, 0, 0);
|
||||
return;
|
||||
|
||||
col = col.toRgb();
|
||||
m_TexDisplay.darkBackgroundColor = m_TexDisplay.lightBackgroundColor =
|
||||
|
||||
Reference in New Issue
Block a user