Show
Ignore:
Timestamp:
08/19/08 11:00:04 (5 months ago)
Author:
liamstask
Message:

- make sure config file is compared/loaded at the appropriate moment
- adjust Builder and MainWindow? to reflect changes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mcbuilder/trunk/src/MainWindow.cpp

    r834 r840  
    528528    setWindowTitle( projectName + "[*] - mcbuilder"); 
    529529    updateRecentProjects(projectPath); 
    530     if(projInfo->diffProjects(projectPath)) 
     530    // diff projects before loading the new one in 
     531    bool clean = projInfo->diffProjects(projectPath); 
     532    projInfo->load(projectPath); // but load the new one in before we clean, so the proper config and Makefiles are created 
     533    if(clean) 
    531534      builder->clean(projectPath); 
    532     projInfo->load(); 
    533535    buildLog->clear(); 
    534536  } 
     
    778780  if(currentProject.isEmpty()) 
    779781    return statusBar()->showMessage( tr("Open a project first, or create a new one from the File menu."), 3500 ); 
    780   if( !projInfo->loadAndShow() ) 
     782  if( !projInfo->load(currentProject) ) 
    781783  { 
    782784    QDir dir(currentProject); 
    783785    return statusBar()->showMessage( tr("Couldn't find/open project properties for ") + dir.dirName(), 3500 ); 
    784786  } 
     787  else 
     788    projInfo->show(); 
    785789} 
    786790