summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-08-06 06:25:09 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-08-06 06:25:09 (GMT)
commit75698ca17add2101fcbeac0e694044307474f924 (patch)
treecbd14b8ed7670d61cc8cbeecb4d84fde9dea2071 /Swift/QtUI
parent7709b172620653a15f7358186914d1a2b8a5e9be (diff)
downloadswift-contrib-75698ca17add2101fcbeac0e694044307474f924.zip
swift-contrib-75698ca17add2101fcbeac0e694044307474f924.tar.bz2
Blocked onOperationReceived signal on no-ops
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
index fcb8ef1..2f7d544 100644
--- a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
+++ b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
@@ -154,9 +154,7 @@ namespace Swift {
WhiteboardDeleteOperation::ref deleteOp = boost::dynamic_pointer_cast<WhiteboardDeleteOperation>(operation);
if (deleteOp) {
- if (deleteOp->getPos() != -1) {
- graphicsView->deleteItem(P2QSTRING(deleteOp->getElementID()));
- }
+ graphicsView->deleteItem(P2QSTRING(deleteOp->getElementID()));
}
}