Changeset 840 for mcbuilder/trunk/src/MainWindow.cpp
- Timestamp:
- 08/19/08 11:00:04 (5 months ago)
- Files:
-
- 1 modified
-
mcbuilder/trunk/src/MainWindow.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mcbuilder/trunk/src/MainWindow.cpp
r834 r840 528 528 setWindowTitle( projectName + "[*] - mcbuilder"); 529 529 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) 531 534 builder->clean(projectPath); 532 projInfo->load();533 535 buildLog->clear(); 534 536 } … … 778 780 if(currentProject.isEmpty()) 779 781 return statusBar()->showMessage( tr("Open a project first, or create a new one from the File menu."), 3500 ); 780 if( !projInfo->load AndShow() )782 if( !projInfo->load(currentProject) ) 781 783 { 782 784 QDir dir(currentProject); 783 785 return statusBar()->showMessage( tr("Couldn't find/open project properties for ") + dir.dirName(), 3500 ); 784 786 } 787 else 788 projInfo->show(); 785 789 } 786 790
