Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] fixed handling null values in Processing settings in Mac
  • Loading branch information
volaya committed Oct 1, 2015
1 parent 7ee2ff6 commit e27f6a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/ConfigDialog.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e27f6a1

Please sign in to comment.