Skip to content

Commit

Permalink
fix help opening
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jun 6, 2017
1 parent d859399 commit e89502f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/gui/AlgorithmDialogBase.py
Expand Up @@ -105,12 +105,12 @@ def __init__(self, alg):
self.splitterState = self.splitter.saveState()
self.splitterChanged(0, 0)

self.setWindowTitle(self.alg.displayName())

self.executed = False
self.mainWidget = None
self.alg = alg

self.setWindowTitle(self.alg.displayName())

# Rename OK button to Run
self.btnRun = self.buttonBox.button(QDialogButtonBox.Ok)
self.btnRun.setText(self.tr('Run'))
Expand Down Expand Up @@ -246,7 +246,7 @@ def splitterChanged(self, pos, index):

def openHelp(self):
algHelp = self.alg.helpUrl()
if algHelp is not None:
if algHelp not in [None, ""]:
webbrowser.open(algHelp)

def _saveGeometry(self):
Expand Down

0 comments on commit e89502f

Please sign in to comment.