Applied patch [ 875666 ] Warning free configtool util

ABX


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-02-08 12:01:28 +00:00
parent 5a332fb5e0
commit 798303203d
4 changed files with 20 additions and 21 deletions

View File

@@ -101,13 +101,11 @@ bool ctConfigToolDoc::OnCloseDocument()
// Saves the doc
bool ctConfigToolDoc::Save()
{
bool ret = FALSE;
if (!IsModified() && m_savedYet) return TRUE;
if (m_documentFile == wxT("") || !m_savedYet)
ret = SaveAs();
else
ret = OnSaveDocument(m_documentFile);
bool ret = (m_documentFile == wxT("") || !m_savedYet) ?
SaveAs() :
OnSaveDocument(m_documentFile);
if ( ret )
SetDocumentSaved(TRUE);
return ret;