diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-21 22:20:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-21 22:20:37 +0300 |
commit | b289ee42c3af1e29cd13d54e98d1a5230abec357 (patch) | |
tree | c80546c335c5608d407bdf99cb672176b04ef29a | |
parent | f605f3579686a8f1d44e02ffff4e687b24e7ce46 (diff) | |
download | manaverse-b289ee42c3af1e29cd13d54e98d1a5230abec357.tar.gz manaverse-b289ee42c3af1e29cd13d54e98d1a5230abec357.tar.bz2 manaverse-b289ee42c3af1e29cd13d54e98d1a5230abec357.tar.xz manaverse-b289ee42c3af1e29cd13d54e98d1a5230abec357.zip |
Fix crash with outdated or broken equipmentwindow.xml
-rw-r--r-- | src/gui/windows/equipmentwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index 7778a4d79..5a2ce6103 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -650,6 +650,8 @@ void EquipmentWindow::fillBoxes() } } delete doc; + if (reportTrue(mPages.empty())) + fillDefault(); } void EquipmentWindow::addDefaultPage() |