From: <ste...@us...> - 2013-02-21 10:29:18
|
Revision: 3520 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=3520&view=rev Author: stef145g Date: 2013-02-21 10:29:06 +0000 (Thu, 21 Feb 2013) Log Message: ----------- Fix "Save database as" function. Modified Paths: -------------- trunk/mmex/src/mmex.cpp Modified: trunk/mmex/src/mmex.cpp =================================================================== --- trunk/mmex/src/mmex.cpp 2013-02-21 08:35:58 UTC (rev 3519) +++ trunk/mmex/src/mmex.cpp 2013-02-21 10:29:06 UTC (rev 3520) @@ -2828,8 +2828,9 @@ if (m_db) // database must be closed before copying its file { - m_db->Close(); - m_db.reset(); + m_core.reset(); + m_db->Close(); + m_db.reset(); } if (!wxCopyFile(oldFileName.GetFullPath(), newFileName.GetFullPath(), true)) // true -> overwrite if file exists This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |