# HG changeset patch # User Santeri Piippo # Date 1402726285 -10800 # Node ID f23f4e4ed279a8372024e2d8f6b047f085db65e1 # Parent 195fa1fff9c3875d436b37665d0c9fdab02ccf3c - disable the 'transparent' checkbox when there is no direct color selected diff -r 195fa1fff9c3 -r f23f4e4ed279 src/colorSelector.cc --- a/src/colorSelector.cc Sat Jun 14 09:05:29 2014 +0300 +++ b/src/colorSelector.cc Sat Jun 14 09:11:25 2014 +0300 @@ -151,6 +151,7 @@ ui->colorLabel->setText (format ("%1 - %2", selection()->indexString(), (selection()->isDirect() ? "" : selection()->name()))); ui->iconLabel->setPixmap (makeColorIcon (selection(), 16).pixmap (16, 16)); + ui->transparentDirectColor->setEnabled (selection()->isDirect()); ui->transparentDirectColor->setChecked (selection()->isDirect() && selection()->faceColor().alphaF() < 1.0); }