From 67ce55049bc3f0cf6b06eb9a2162b787a38cb7fb Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Wed, 16 May 2018 10:26:13 +0200 Subject: [PATCH] CURA-5164 Fix a bug when open the discard or keep dialog. It was using a non-existing variable. --- cura/CuraApplication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index b629332f47..667390b946 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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