Skip to content

Commit

Permalink
[processing]minor code cleaning
Browse files Browse the repository at this point in the history
Conflicts:
	python/plugins/processing/core/parameters.py
  • Loading branch information
volaya committed Oct 5, 2016
1 parent e6f9499 commit ae0e9c8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions python/plugins/processing/gui/ParametersPanel.py
Expand Up @@ -37,7 +37,7 @@

from qgis.PyQt import uic
from qgis.PyQt.QtCore import QCoreApplication, QVariant
from qgis.PyQt.QtWidgets import (QWidget, QLayout, QVBoxLayout, QHBoxLayout, QToolButton,
from qgis.PyQt.QtWidgets import (QWidget, QLayout, QVBoxLayout, QHBoxLayout, QToolButton,
QLabel, QCheckBox, QComboBox, QLineEdit, QPlainTextEdit)
from qgis.PyQt.QtGui import QIcon

Expand Down Expand Up @@ -97,11 +97,8 @@ def initWidgets(self):
desc += self.tr(' (xmin, xmax, ymin, ymax)')
if isinstance(param, ParameterPoint):
desc += self.tr(' (x, y)')
try:
if param.optional:
desc += self.tr(' [optional]')
except:
pass
if param.optional:
desc += self.tr(' [optional]')

wrapper = self.getWidgetWrapperFromParameter(param)
self.wrappers[param.name] = wrapper
Expand Down

0 comments on commit ae0e9c8

Please sign in to comment.