Sat, 14 Jun 2014 09:11:25 +0300
- disable the 'transparent' checkbox when there is no direct color selected
src/colorSelector.cc | file | annotate | diff | comparison | revisions |
--- 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() ? "<direct color>" : 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); }