[qet] [3047] Xref propertie widget: fix wrong behavior

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3047
Author:   blacksun
Date:     2014-05-03 15:22:50 +0200 (Sat, 03 May 2014)
Log Message:
-----------
Xref propertie widget: fix wrong behavior

Modified Paths:
--------------
    trunk/sources/ui/xrefpropertieswidget.cpp

Modified: trunk/sources/ui/xrefpropertieswidget.cpp
===================================================================
--- trunk/sources/ui/xrefpropertieswidget.cpp	2014-05-03 08:33:26 UTC (rev 3046)
+++ trunk/sources/ui/xrefpropertieswidget.cpp	2014-05-03 13:22:50 UTC (rev 3047)
@@ -75,7 +75,11 @@
 void XRefPropertiesWidget::setReadOnly(bool ro) {
 	ui->m_display_has_cross_rb->setDisabled(ro);
 	ui->m_display_has_contacts_rb->setDisabled(ro);
-	ui->m_show_power_cb->setDisabled(ro);
+
+	if (m_properties.displayHas() != XRefProperties::Cross)
+		ui->m_show_power_cb->setDisabled(true);
+	else
+		ui->m_show_power_cb->setDisabled(ro);
 }
 
 /**


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/