From: <vo...@us...> - 2012-10-28 10:38:02
|
Revision: 3091 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=3091&view=rev Author: vomikan Date: 2012-10-28 10:37:55 +0000 (Sun, 28 Oct 2012) Log Message: ----------- fix for Language chooser if started from scratch Modified Paths: -------------- trunk/mmex/src/mmex.cpp Modified: trunk/mmex/src/mmex.cpp =================================================================== --- trunk/mmex/src/mmex.cpp 2012-10-28 09:07:30 UTC (rev 3090) +++ trunk/mmex/src/mmex.cpp 2012-10-28 10:37:55 UTC (rev 3091) @@ -493,6 +493,12 @@ custRepIndex_ = new customSQLReportIndex(); + // decide if we need to show app start dialog + bool from_scratch = m_inisettings->GetBoolSetting(wxT("SHOWBEGINAPP"), true); + + wxFileName dbpath = mmDBWrapper::getLastDbPath(m_inisettings); + if (from_scratch && !dbpath.IsOk()) mmSelectLanguage(this, m_inisettings, true); + /* Create the Controls for the frame */ createMenu(); createToolBar(); @@ -528,11 +534,7 @@ menuItemOnlineUpdateCurRate_->Enable(false); } - // decide if we need to show app start dialog - bool from_scratch = m_inisettings->GetBoolSetting(wxT("SHOWBEGINAPP"), true); - - wxFileName dbpath = from_scratch ? wxGetEmptyString() : mmDBWrapper::getLastDbPath(m_inisettings); - + if (from_scratch) dbpath = wxGetEmptyString(); if (from_scratch || !dbpath.IsOk()) { menuEnableItems(false); createHomePage(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |