CURA-5164 Fix a bug when open the discard or keep dialog. It was using

a non-existing variable.
This commit is contained in:
Diego Prado Gesto 2018-05-16 10:26:13 +02:00
parent 8ad409ff55
commit 67ce55049b

View File

@ -555,7 +555,7 @@ class CuraApplication(QtApplication):
elif choice == "always_keep":
# don't show dialog and KEEP the profile
self.discardOrKeepProfileChangesClosed("keep")
elif self._use_gui:
elif not self._is_headless:
# ALWAYS ask whether to keep or discard the profile
self.showDiscardOrKeepProfileChanges.emit()
has_user_interaction = True