Xref propertie widget: fix wrong behavior

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3047 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-05-03 13:22:50 +00:00
parent 0a65b4df8c
commit 9595e55645

View File

@@ -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);
}
/**