From c38c632d067702454f1f706eeefcbfaa0043b738 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 13 Aug 2011 19:22:01 +0200 Subject: fixed multiple popup creation in the editor. Closes #836 --- src/game/editor/popups.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/editor/popups.cpp') 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; } -- cgit 1.4.1