Skip to content

Commit

Permalink
remove algorithm refresh after processing configuration changes (was …
Browse files Browse the repository at this point in the history
…a NOOP before c832613 and now causes an endless recursion; fixes #18807)
  • Loading branch information
jef-n committed May 4, 2018
1 parent 82ec418 commit d8e39fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion python/plugins/processing/gui/ConfigDialog.py
Expand Up @@ -278,7 +278,6 @@ def accept(self):
self.tr('Wrong value for parameter "%s":\n\n%s' % (setting.description, unicode(e))))
return
setting.save(qsettings)
Processing.updateAlgsList()
settingsWatcher.settingsChanged.emit()
updateMenus()
QApplication.restoreOverrideCursor()
Expand Down
1 change: 1 addition & 0 deletions python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -144,6 +144,7 @@ def _mimeDataInput(items):

def _mimeDataAlgorithm(items):
item = items[0]
mimeData = None
if isinstance(item, TreeAlgorithmItem):
mimeData = QMimeData()
mimeData.setText(item.alg.commandLineName())
Expand Down
5 changes: 3 additions & 2 deletions python/testing/__init__.py
Expand Up @@ -31,7 +31,7 @@
import functools

from qgis.PyQt.QtCore import QVariant
from qgis.core import QgsApplication, QgsFeatureRequest, QgsVectorLayer
from qgis.core import QgsApplication, QgsFeatureRequest

try:
from nose2.compat import unittest
Expand Down Expand Up @@ -105,7 +105,7 @@ def assertLayersEqual(self, layer_expected, layer_result, **kwargs):
attr_result = feats[1][field_expected.name()]
field_result = [fld for fld in layer_expected.fields().toList() if fld.name() == field_expected.name()][0]
try:
cmp = compare['fields'][field1.name()]
cmp = compare['fields'][field_expected.name()]
except KeyError:
try:
cmp = compare['fields']['__all__']
Expand Down Expand Up @@ -225,6 +225,7 @@ def wrapper(*args, **kwargs):

return realExpectedFailure


# Patch unittest
unittest.TestCase = TestCase
unittest.expectedFailure = expectedFailure
Expand Down

1 comment on commit d8e39fa

@gioman
Copy link
Contributor

@gioman gioman commented on d8e39fa May 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jef-n thanks!

Please sign in to comment.