summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2015-06-27 20:14:00 +0200
committerRalf Habacker <[email protected]>2015-06-27 20:14:59 +0200
commitde0c89f4da0fe708ccac4d003781ad68b4777975 (patch)
tree24dd2b78082d6d3476962e60cdb007b91c93f4e1
parent0b7dc1040a1a1bbaec9795a221ed5fd7f29fadb9 (diff)
Fix crash which happens on pasting widgets from a different umbrello instance.Applications/15.04
-rw-r--r--umbrello/clipboard/umldragdata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/umbrello/clipboard/umldragdata.cpp b/umbrello/clipboard/umldragdata.cpp
index 65fcca3..f4702d5 100644
--- a/umbrello/clipboard/umldragdata.cpp
+++ b/umbrello/clipboard/umldragdata.cpp
@@ -549,7 +549,7 @@ bool UMLDragData::decodeClip4(const QMimeData* mimeData, UMLObjectList& objects,
}
// check if widget is pastable
- if (sourceView->umlScene()->type() != scene->type()) {
+ if (!sourceView || sourceView->umlScene()->type() != scene->type()) {
UMLObject *object = widget->umlObject();
if (object) {
if (!Model_Utils::typeIsAllowedInDiagram(object, scene)) {