Changeset 376 for cafu/trunk

Show
Ignore:
Timestamp:
09/11/11 18:41:15 (8 months ago)
Author:
Carsten
Message:

CaWE:
If the user cancelled the "select game configuration" dialog, don't remove the file from the file history.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/CaWE/ParentFrame.cpp

    r359 r376  
    707707                wxString     FileName  =m_FileHistory.GetHistoryFile(CE.GetId()-wxID_FILE1); 
    708708                GameConfigT* GameConfig=AskUserForGameConfig(wxFileName(FileName)); 
     709 
     710                // If the user cancelled the "select game configuration" dialog, 
     711                // don't remove the file from the file history. 
     712                if (!GameConfig) break; 
    709713 
    710714                // We remove the file from the file history beforehand.