- added a change that when a double click is performed in a object on canvas resulting in a selection, if the notebook is hidden then it will be displayed

This commit is contained in:
Marius Stanciu
2019-02-28 16:39:44 +02:00
committed by Marius
parent ee23a31d50
commit 546f643035
2 changed files with 7 additions and 1 deletions

View File

@@ -4583,7 +4583,6 @@ class App(QtCore.QObject):
def on_double_click_over_plot(self, event):
self.doubleclick = True
# make double click work only for the LMB
def on_mouse_move_over_plot(self, event, origin_click=None):
"""
@@ -4686,6 +4685,9 @@ class App(QtCore.QObject):
self.doubleclick = False
if self.collection.get_selected():
self.ui.notebook.setCurrentWidget(self.ui.selected_tab)
if self.ui.splitter.sizes()[0] == 0:
self.ui.splitter.setSizes([1, 1])
# delete the selection shape(S) as it may be in the way
self.delete_selection_shape()