From 8b61d93fc869ea39a78cdc134002ef11bf3e69d3 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 16 Mar 2015 17:20:03 -0400 Subject: Opening a file in the map editor closes the current window if the current window is a blank slate --- tools/mapedit/src/world.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/mapedit/src/world.h') diff --git a/tools/mapedit/src/world.h b/tools/mapedit/src/world.h index c30f4b4..a2b5235 100644 --- a/tools/mapedit/src/world.h +++ b/tools/mapedit/src/world.h @@ -32,6 +32,7 @@ class World { void setLastMap(Map* map); std::list> getRootMaps() const; const std::map> getMaps() const; + bool getEmpty() const; private: MapeditFrame* parent; @@ -41,6 +42,7 @@ class World { std::string filename; int lastmap = 0; std::list rootChildren; + bool empty = false; }; #endif -- cgit 1.4.1