Skip to content
Permalink
Browse files

remove algorithm refresh after processing configuration changes (was …

…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 d8e39fa9940f82ad54c7fcbf9c54fe53405f3ff6
@@ -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()
@@ -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())
@@ -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
@@ -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__']
@@ -225,6 +225,7 @@ def wrapper(*args, **kwargs):

return realExpectedFailure


# Patch unittest
unittest.TestCase = TestCase
unittest.expectedFailure = expectedFailure

1 comment on commit d8e39fa

@gioman

This comment has been minimized.

Copy link
Contributor

@gioman gioman commented on d8e39fa May 5, 2018

@jef-n thanks!

Please sign in to comment.
You can’t perform that action at this time.