mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
[processing] correctly switch to description tab if help tab exists
This commit is contained in:
parent
6bf4b92cb9
commit
518f7dcf6b
@ -32,7 +32,7 @@ from processing.preconfigured.PreconfiguredUtils import algAsDict
|
|||||||
from processing.preconfigured.PreconfiguredUtils import preconfiguredAlgorithmsFolder
|
from processing.preconfigured.PreconfiguredUtils import preconfiguredAlgorithmsFolder
|
||||||
from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase
|
from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase
|
||||||
from processing.gui.AlgorithmDialog import AlgorithmDialog
|
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
|
QLineEdit, QWidget
|
||||||
|
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ class PreconfiguredAlgorithmDialog(AlgorithmDialog):
|
|||||||
description["name"] = self.settingsPanel.txtName.text().strip()
|
description["name"] = self.settingsPanel.txtName.text().strip()
|
||||||
description["group"] = self.settingsPanel.txtGroup.text().strip()
|
description["group"] = self.settingsPanel.txtGroup.text().strip()
|
||||||
if not (description["name"] and description["group"]):
|
if not (description["name"] and description["group"]):
|
||||||
self.tabWidget.setCurrentIndex(1)
|
self.tabWidget.setCurrentIndex(self.tabWidget.count() - 1)
|
||||||
return
|
return
|
||||||
validChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:'
|
validChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:'
|
||||||
filename = ''.join(c for c in description["name"] if c in validChars).lower() + ".json"
|
filename = ''.join(c for c in description["name"] if c in validChars).lower() + ".json"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user