Skip to content
Permalink
Browse files

[processing] fixed handling null values in Processing settings in Mac

  • Loading branch information
volaya committed Oct 1, 2015
1 parent 7ee2ff6 commit e27f6a12c6cb81328b476203212f5c1eec2a9e21
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/ConfigDialog.py
@@ -29,7 +29,7 @@
import os

from PyQt4 import uic
from PyQt4.QtCore import Qt, QEvent
from PyQt4.QtCore import Qt, QEvent, QPyNullVariant
from PyQt4.QtGui import (QFileDialog, QDialog, QIcon, QStyle,
QStandardItemModel, QStandardItem, QMessageBox, QStyledItemDelegate,
QLineEdit, QSpinBox, QDoubleSpinBox, QWidget, QToolButton, QHBoxLayout)
@@ -234,7 +234,7 @@ def eventFilter(self, editor, event):
return QStyledItemDelegate.eventFilter(self, editor, event)

def convertValue(self, value):
if value is None:
if value is None or isinstance(value, QPyNullVariant):
return ""
try:
return int(value)

0 comments on commit e27f6a1

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