Fix ObjectChooser backwards compatibility
The last change brak compatibility with the use in activities without set the filter_type parameter, because None is not a allowed value in the dbus call. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
This commit is contained in:
parent
f54229efd2
commit
ad3c163023
@ -125,8 +125,12 @@ class ObjectChooser(object):
|
||||
else:
|
||||
what_filter = self._what_filter
|
||||
|
||||
self._chooser_id = journal.ChooseObjectWithFilter(
|
||||
self._parent_xid, what_filter, self._filter_type)
|
||||
if self._filter_type is None:
|
||||
self._chooser_id = journal.ChooseObject(
|
||||
self._parent_xid, what_filter)
|
||||
else:
|
||||
self._chooser_id = journal.ChooseObjectWithFilter(
|
||||
self._parent_xid, what_filter, self._filter_type)
|
||||
|
||||
Gdk.threads_leave()
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user