HasUser settings now returns False when no container stack is found

This commit is contained in:
Jaime van Kessel 2016-06-24 15:45:11 +02:00
parent e8743abe68
commit 727c34b535

View File

@ -202,7 +202,7 @@ class MachineManagerModel(QObject):
@pyqtProperty(bool, notify = activeStackChanged)
def hasUserSettings(self):
if not self._active_container_stack:
return
return False
user_settings = self._active_container_stack.getTop().findInstances(**{})
return len(user_settings) != 0