mirror of
https://github.com/IndeemaSoftware/QSimpleScada.git
synced 2026-10-16 21:01:05 +08:00
Fixed issue with possibility to select non editable object on none editable board
This commit is contained in:
@@ -184,14 +184,16 @@ bool QScadaObject::selected() const
|
||||
|
||||
void QScadaObject::setSelected(bool selected)
|
||||
{
|
||||
mSelected = selected;
|
||||
if (mIsEditable) {
|
||||
mSelected = selected;
|
||||
|
||||
if (mSelected) {
|
||||
emit objectSelected(mInfo->id());
|
||||
if (mSelected) {
|
||||
emit objectSelected(mInfo->id());
|
||||
|
||||
mEffect->setBlurRadius(50);
|
||||
} else {
|
||||
mEffect->setBlurRadius(10);
|
||||
mEffect->setBlurRadius(50);
|
||||
} else {
|
||||
mEffect->setBlurRadius(10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user