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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user