Fix opening a log without having one selected raising an exception.

This commit is contained in:
Dpeta 2023-02-28 23:52:46 +01:00
parent f09c6eeafd
commit d1e4bdb7dc
No known key found for this signature in database
GPG key ID: 51227517CEA0030C

View file

@ -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: