Skip to content

Commit

Permalink
Canvas: Always show the link dialog if the user holds Shift
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Oct 18, 2016
1 parent 4d1ea03 commit 680614a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Orange/canvas/document/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def mouseMoveEvent(self, event):

def mouseReleaseEvent(self, event):
if self.tmp_link_item:
self.force_link_dialog = bool(event.modifiers() & Qt.ShiftModifier)
item = self.target_node_item_at(event.scenePos())
node = None
stack = self.document.undoStack()
Expand Down Expand Up @@ -501,7 +502,7 @@ def connect_nodes(self, source_node, sink_node):
# to SchemeLinks later
links_to_add = [(source, sink)]
links_to_remove = []
show_link_dialog = False
show_link_dialog = self.force_link_dialog

# Ambiguous new link request.
if len(possible) >= 2:
Expand Down

0 comments on commit 680614a

Please sign in to comment.