changeset 2015:4f97429b8909

fixed bug: correct error message is displayed on server disconnect
author wuha
date Mon, 31 Oct 2011 19:19:07 +0000
parents 19f4755627c6
children db8415fd72a8
files src/gui/mainwindow.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui/mainwindow.cpp	Mon Oct 31 19:17:07 2011 +0000
+++ b/src/gui/mainwindow.cpp	Mon Oct 31 19:19:07 2011 +0000
@@ -404,6 +404,7 @@
         {
             m_sub_windows["errorDialog"]->update();
             error_dialog->setVisible(true);
+			error_dialog->activate();
             //error_dialog->setModalState(true);
         }
         else
@@ -1082,11 +1083,12 @@
 	Window* wnd = new ErrorDialogWindow(m_document);
 	m_sub_windows["errorDialog"] = wnd;
 	
+	m_game_screen->addChildWindow(wnd->getCEGUIWindow());
+	wnd->getCEGUIWindow()->setVisible(false);
+	
 	wnd = new WarningDialogWindow(m_document);
 	m_sub_windows["warningDialog"] = wnd;
 	
-	
-	// Inventar anfangs ausblenden
 	m_main_menu->addChildWindow(wnd->getCEGUIWindow());
 	wnd->getCEGUIWindow()->setVisible(false);
 }