[qet] [2927] link single element widget: fix wrong behavior with the the bouton " see the linked element" |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2927
Author: blacksun
Date: 2014-03-16 22:20:38 +0100 (Sun, 16 Mar 2014)
Log Message:
-----------
link single element widget: fix wrong behavior with the the bouton "see the linked element"
Modified Paths:
--------------
trunk/sources/ui/linksingleelementwidget.cpp
Modified: trunk/sources/ui/linksingleelementwidget.cpp
===================================================================
--- trunk/sources/ui/linksingleelementwidget.cpp 2014-03-15 20:49:05 UTC (rev 2926)
+++ trunk/sources/ui/linksingleelementwidget.cpp 2014-03-16 21:20:38 UTC (rev 2927)
@@ -89,11 +89,11 @@
}
buildList();
- if (!element_->isFree()) {
- ui->button_linked->setDisabled(true);
- buildUnlinkButton();
- }
+ element_->isFree() ?
+ ui->button_linked->setDisabled(true) :
+ buildUnlinkButton();
+
if(filter_ & Element::Master)
buildSearchField();
}