//---------------------------------------------------------------------------- bool mmGUIApp::OnInit() { m_checker = new wxSingleInstanceChecker; if (m_checker->IsAnotherRunning()) { wxMessageBox(_( "MMEX is already running...\n\n" "Multiple instances are no longer supported."), _("MMEX Instance Check")); delete m_checker; return false; } bool ok = false; try { ok = wxApp::OnInit() && OnInitImpl(this); } catch (const wxSQLite3Exception &e) { wxLogError(e.GetMessage()); } catch (const std::exception &e) { wxLogError("%s", e.what()); } return ok; }
//---------------------------------------------------------------------------- bool mmGUIApp::OnInit() { bool ok = false; try { ok = wxApp::OnInit() && OnInitImpl(this); } catch (const wxSQLite3Exception &e) { wxLogError(e.GetMessage()); } catch (const std::exception &e) { wxLogError("%s", e.what()); } return ok; }