From b289ee42c3af1e29cd13d54e98d1a5230abec357 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Jul 2016 22:20:37 +0300 Subject: Fix crash with outdated or broken equipmentwindow.xml --- src/gui/windows/equipmentwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui') 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() -- cgit v1.2.3-70-g09d2