Fix opening a log without having one selected raising an exception.
This commit is contained in:
parent
f09c6eeafd
commit
d1e4bdb7dc
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue