Don't change background colour if the QColorDialog was aborted

This commit is contained in:
baldurk
2017-07-25 09:23:17 +01:00
parent 371c1f9f8c
commit fbeb57baf6
+1 -1
View File
@@ -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 =