From 412ae74bfae2539a1de33af8b7b8bc352dc40e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 5 Apr 2020 10:38:16 +0200 Subject: [PATCH] Fixed broken map enable condition (falsly enabled map can crash) --- src/GUI/mapaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/mapaction.h b/src/GUI/mapaction.h index 9282e999..43f656cc 100644 --- a/src/GUI/mapaction.h +++ b/src/GUI/mapaction.h @@ -13,7 +13,7 @@ public: { map->setParent(this); setData(QVariant::fromValue(map)); - setEnabled(map->isValid()); + setEnabled(map->isReady()); connect(map, SIGNAL(mapLoaded()), this, SLOT(mapLoaded())); }