Skip to content
Permalink
Browse files
[processing] Fix error when opening modeler (fix #16270)
  • Loading branch information
nyalldawson committed Mar 16, 2017
1 parent eb22319 commit b0dc9f8517fe22462341ec4e01eaeec9c7c3234e
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/modeler/ModelerDialog.py
@@ -208,7 +208,10 @@ def _mimeDataAlgorithm(items):
ctrlEquals = QShortcut(QKeySequence("Ctrl+="), self)
ctrlEquals.activated.connect(self.zoomIn)

iconSize = settings.value("iconsize", 24)
try:
iconSize = int(settings.value("iconsize", 24))
except:
iconSize = 24
self.mToolbar.setIconSize(QSize(iconSize, iconSize))
self.mActionOpen.triggered.connect(self.openModel)
self.mActionSave.triggered.connect(self.save)

1 comment on commit b0dc9f8

@alexbruy

This comment has been minimized.

Copy link
Contributor

@alexbruy alexbruy commented on b0dc9f8 Mar 20, 2017

@nyalldawson it seems that deleting QGIS settings fixes this issue without any code changes. I suspect this is somehow related to the recent transition to QgsSettings.

Please sign in to comment.