about summary refs log tree commit diff
path: root/src/game/editor/popups.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-08-13 19:22:01 +0200
committeroy <Tom_Adams@web.de>2011-08-13 19:22:01 +0200
commitc38c632d067702454f1f706eeefcbfaa0043b738 (patch)
tree36f11594215f8d0e3c053f48c6fdac39a0160ac3 /src/game/editor/popups.cpp
parent4e830a71a1334a6f47ab4b3fb3cf44419a240f25 (diff)
downloadzcatch-c38c632d067702454f1f706eeefcbfaa0043b738.tar.gz
zcatch-c38c632d067702454f1f706eeefcbfaa0043b738.zip
fixed multiple popup creation in the editor. Closes #836
Diffstat (limited to 'src/game/editor/popups.cpp')
-rw-r--r--src/game/editor/popups.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/editor/popups.cpp b/src/game/editor/popups.cpp
index a97146aa..c19adb82 100644
--- a/src/game/editor/popups.cpp
+++ b/src/game/editor/popups.cpp
@@ -684,13 +684,17 @@ int CEditor::PopupEvent(CEditor *pEditor, CUIRect View)
 		}
 		else if(pEditor->m_PopupEventType == POPEVENT_SAVE)
 			pEditor->CallbackSaveMap(pEditor->m_aFileSaveName, IStorage::TYPE_SAVE, pEditor);
+		pEditor->m_PopupEventWasActivated = false;
 		return 1;
 	}
 	ButtonBar.VSplitRight(30.0f, &ButtonBar, 0);
 	ButtonBar.VSplitRight(110.0f, &ButtonBar, &Label);
 	static int s_AbortButton = 0;
 	if(pEditor->DoButton_Editor(&s_AbortButton, "Abort", 0, &Label, 0, 0))
+	{
+		pEditor->m_PopupEventWasActivated = false;
 		return 1;
+	}
 
 	return 0;
 }