Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] correctly switch to description tab if help tab exists
  • Loading branch information
volaya committed May 19, 2016
1 parent 6bf4b92 commit 518f7dc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -32,7 +32,7 @@
from processing.preconfigured.PreconfiguredUtils import preconfiguredAlgorithmsFolder
from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase
from processing.gui.AlgorithmDialog import AlgorithmDialog
from PyQt4.QtGui import QMessageBox, QPalette, QColor, QVBoxLayout, QLabel,\
from PyQt4.QtGui import QMessageBox, QPalette, QColor, QVBoxLayout, QLabel, \
QLineEdit, QWidget


Expand All @@ -59,7 +59,7 @@ def accept(self):
description["name"] = self.settingsPanel.txtName.text().strip()
description["group"] = self.settingsPanel.txtGroup.text().strip()
if not (description["name"] and description["group"]):
self.tabWidget.setCurrentIndex(1)
self.tabWidget.setCurrentIndex(self.tabWidget.count() - 1)
return
validChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:'
filename = ''.join(c for c in description["name"] if c in validChars).lower() + ".json"
Expand Down

0 comments on commit 518f7dc

Please sign in to comment.