From d533d91adc941b4f25b7b85534c6472b184d9f7d Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sun, 17 Nov 2019 16:11:26 +0100 Subject: [PATCH] Added a sanity check on the titleKey --- nw/gui/elements/outline.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nw/gui/elements/outline.py b/nw/gui/elements/outline.py index a2f5cf51..9c3937de 100644 --- a/nw/gui/elements/outline.py +++ b/nw/gui/elements/outline.py @@ -118,6 +118,9 @@ class GuiProjectOutline(QWidget): for titleKey in self.theIndex.getNovelStructure(): + if len(titleKey) < 15: + continue + tHandle = titleKey[:13] sTitle = titleKey[14:]