summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-21 22:20:37 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-21 22:20:37 +0300
commitb289ee42c3af1e29cd13d54e98d1a5230abec357 (patch)
treec80546c335c5608d407bdf99cb672176b04ef29a /src/gui/windows/equipmentwindow.cpp
parentf605f3579686a8f1d44e02ffff4e687b24e7ce46 (diff)
downloadplus-b289ee42c3af1e29cd13d54e98d1a5230abec357.tar.gz
plus-b289ee42c3af1e29cd13d54e98d1a5230abec357.tar.bz2
plus-b289ee42c3af1e29cd13d54e98d1a5230abec357.tar.xz
plus-b289ee42c3af1e29cd13d54e98d1a5230abec357.zip
Fix crash with outdated or broken equipmentwindow.xml
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r--src/gui/windows/equipmentwindow.cpp2
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()