1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 02:37:16 +01:00

additional check for the condition that only seems to happen in unit tests

This commit is contained in:
Vadim Kurland 2010-08-06 01:42:27 +00:00
parent 549761d01a
commit 4f43a0cce4
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 3213
#define BUILD_NUM 3214

View File

@ -864,6 +864,7 @@ void ObjectManipulator::getMenuState(bool haveMoveTargets,
copyMenuItem = copyMenuItem && FWBTree().getCopyMenuState(object_path);
pasteMenuItem = pasteMenuItem &&
FWBTree().getPasteMenuState(object_path) &&
FWObjectClipboard::obj_clipboard &&
(FWObjectClipboard::obj_clipboard->size()!=0);
delMenuItem = delMenuItem && getDeleteMenuState(obj);
delMenuItem = delMenuItem && current_library != NULL &&