From 32de83666a8d0736bdcb9a220a59f11dd4b03293 Mon Sep 17 00:00:00 2001 From: Olivier Keshavjee Date: Fri, 24 Mar 2017 11:30:54 +0100 Subject: [PATCH] UI tweak in SubPlot view (#87) --- manuskript/mainWindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manuskript/mainWindow.py b/manuskript/mainWindow.py index 78c04791..9240974e 100644 --- a/manuskript/mainWindow.py +++ b/manuskript/mainWindow.py @@ -518,7 +518,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.lstPlots.currentItemChanged.connect(self.changeCurrentPlot, AUC) self.txtSubPlotSummary.document().contentsChanged.connect( self.updateSubPlotSummary, AUC) - self.lstSubPlots.activated.connect(self.changeCurrentSubPlot, AUC) + self.lstSubPlots.clicked.connect(self.changeCurrentSubPlot, AUC) self.btnRedacAddFolder.clicked.connect(self.treeRedacOutline.addFolder, AUC) self.btnOutlineAddFolder.clicked.connect(self.treeOutlineOutline.addFolder, AUC) @@ -602,6 +602,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): self.btnRmPlot.clicked.connect(lambda: self.mdlPlots.removePlot(self.lstPlots.currentPlotIndex()), AUC) self.btnAddSubPlot.clicked.connect(self.mdlPlots.addSubPlot, AUC) + self.btnAddSubPlot.clicked.connect(self.updateSubPlotView, AUC) self.btnRmSubPlot.clicked.connect(self.mdlPlots.removeSubPlot, AUC) self.lstPlotPerso.selectionModel().selectionChanged.connect(self.plotPersoSelectionChanged) self.btnRmPlotPerso.clicked.connect(self.mdlPlots.removePlotPerso, AUC)