[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Tue Jul 12 03:55:02 CEST 2005
SVN commit 433870 by staikos:
setEnabled() needs to be dependent on both I think.
M +2 -4 kstdatamanager_i.cpp
--- trunk/extragear/graphics/kst/kst/kstdatamanager_i.cpp #433869:433870
@@ -305,10 +305,8 @@
void KstObjectItem::updateButtons() {
- _dm->Edit->setEnabled(RTTI_OBJ_VECTOR != _rtti);
- _dm->Delete->setEnabled(RTTI_OBJ_VECTOR != _rtti);
- _dm->Edit->setEnabled(_rtti != RTTI_OBJ_MATRIX);
- _dm->Delete->setEnabled(_rtti != RTTI_OBJ_MATRIX);
+ _dm->Edit->setEnabled(RTTI_OBJ_VECTOR != _rtti && RTTI_OBJ_MATRIX != _rtti);
+ _dm->Delete->setEnabled(RTTI_OBJ_VECTOR != _rtti && RTTI_OBJ_MATRIX != _rtti);
}
More information about the Kst
mailing list