added "new map" button

fixed minor model/logic issues
This commit is contained in:
2017-05-24 17:54:09 +02:00
parent 6fb1c3a5fc
commit 489a64fd69
8 changed files with 49 additions and 7 deletions

View File

@@ -181,8 +181,10 @@ private:
// set the currently focused object (if any)
focused = el;
// focus the new one (if any)
if (focused) {focused->getMV2D()->focus();}
// focus the new one (if any, and focus supported)
if (focused && focused->getMV2D()) {
focused->getMV2D()->focus();
}
// update the help-text
showHelp();