Skip to content

Commit

Permalink
[processing] Fix error when opening modeler (fix #16270)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 16, 2017
1 parent eb22319 commit b0dc9f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/modeler/ModelerDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit b0dc9f8

@alexbruy
Copy link
Contributor

Choose a reason for hiding this comment

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

@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.