Absence of perspective configuration no longer triggers assertion

This commit is contained in:
Simon Rozman 2017-02-20 10:57:15 +01:00
parent eb33a877d1
commit 5ff1a95df2

View File

@ -87,7 +87,8 @@ public:
{ {
// Load perspective string from configuration. // Load perspective string from configuration.
wxString persp; wxString persp;
wxCHECK(RestoreValue(wxT(wxPERSIST_AUIMGR_PERSPECTIVE), &persp), false); if (!RestoreValue(wxT(wxPERSIST_AUIMGR_PERSPECTIVE), &persp))
return false;
// Update captions (see http://trac.wxwidgets.org/ticket/12528). // Update captions (see http://trac.wxwidgets.org/ticket/12528).
wxAuiManager* mgr = GetManager(); wxAuiManager* mgr = GetManager();