From d1e4bdb7dc6c712f01893fd5c5ea0de65f1a4522 Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Tue, 28 Feb 2023 23:52:46 +0100 Subject: [PATCH] Fix opening a log without having one selected raising an exception. --- logviewer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/logviewer.py b/logviewer.py index d6773af..1ddadd9 100644 --- a/logviewer.py +++ b/logviewer.py @@ -115,7 +115,10 @@ class PesterLogUserSelect(QtWidgets.QDialog): @QtCore.pyqtSlot() def viewActivatedLog(self): - selectedchum = self.selectedchum().text() + selectedchum = self.selectedchum() + if not selectedchum: + return + selectedchum = selectedchum.text() if not hasattr(self, "pesterlogviewer"): self.pesterlogviewer = None if not self.pesterlogviewer: