From 9595e55645f78b73d67317ea78a2f781958ccc43 Mon Sep 17 00:00:00 2001 From: blacksun Date: Sat, 3 May 2014 13:22:50 +0000 Subject: [PATCH] Xref propertie widget: fix wrong behavior git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3047 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/ui/xrefpropertieswidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/ui/xrefpropertieswidget.cpp b/sources/ui/xrefpropertieswidget.cpp index 5ba441a4e..b4ac5cf68 100644 --- a/sources/ui/xrefpropertieswidget.cpp +++ b/sources/ui/xrefpropertieswidget.cpp @@ -75,7 +75,11 @@ XRefProperties XRefPropertiesWidget::properties() { 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); } /**