From 8fe282e484dd96b9e678b727cdf0c31e11f3cdb9 Mon Sep 17 00:00:00 2001 From: Curtis Gedak Date: Fri, 30 Jun 2017 16:21:00 -0600 Subject: [PATCH] Ensure character tabs are disabled when no valid character is selected Previously if a character was selected, and next either: a title (Main, Secondary, Minor) was selected, or: the character remove button was clicked, then the character tabs would remain enabled. This was incorrect behaviour. In the case a character was removed and the user moved the importance slider then Manuskript would crash. This enhancement disables the character tabs when there is no valid character selected. --- manuskript/mainWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuskript/mainWindow.py b/manuskript/mainWindow.py index e57218bd..94bb9d81 100644 --- a/manuskript/mainWindow.py +++ b/manuskript/mainWindow.py @@ -156,7 +156,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): """ c = self.lstCharacters.currentCharacter() if not c: - self.tabPlot.setEnabled(False) + self.tabPersos.setEnabled(False) return self.tabPersos.setEnabled(True)