1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Moved window stack management from GuiHandler to new class

This commit is contained in:
Ivan Savenko
2023-05-16 15:10:26 +03:00
parent ddf22a757d
commit 7838190ef4
40 changed files with 411 additions and 298 deletions

View File

@@ -11,6 +11,7 @@
#include "CIntObject.h"
#include "CGuiHandler.h"
#include "WindowHandler.h"
#include "Shortcut.h"
#include "../renderSDL/SDL_Extensions.h"
#include "../windows/CMessage.h"
@@ -356,9 +357,9 @@ WindowBase::WindowBase(int used_, Point pos_)
void WindowBase::close()
{
if(GH.topInt().get() != this)
if(GH.windows().topInt().get() != this)
logGlobal->error("Only top interface must be closed");
GH.popInts(1);
GH.windows().popInts(1);
}
IStatusBar::~IStatusBar()