From ddedd3ed7a9f32bed87a0c5ca5efd78638474cac Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Mon, 12 Jun 2017 10:42:44 +0200 Subject: [PATCH] [hotfix] ignoring error when mouseclick signal cannot be disconnected --- QtPyLoT.py | 5 ++++- pylot/RELEASE-VERSION | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 1136a29d..8e84cccb 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -1234,7 +1234,10 @@ class MainWindow(QMainWindow): def disconnect_pg(self): if self.poS_id: - self.dataPlot.plotWidget.scene().sigMouseClicked.disconnect() + try: + self.dataPlot.plotWidget.scene().sigMouseClicked.disconnect() + except: + pass def disconnect_mpl(self): if self.poS_id: diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 9515eb1e..401c7fd7 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -8e83-dirty +a2c7-dirty