- disable the 'transparent' checkbox when there is no direct color selected

Sat, 14 Jun 2014 09:11:25 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 14 Jun 2014 09:11:25 +0300
changeset 796
f23f4e4ed279
parent 795
195fa1fff9c3
child 797
4bd154b5d0bd

- 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);
 }
 

mercurial