File tree Expand file tree Collapse file tree
src/plugins/ProjectManager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1041,11 +1041,15 @@ void ProjectManagerPlugin::clearProject_clicked() {
10411041void ProjectManagerPlugin::projectFile_modified (const QString &path) {
10421042 auto onDiskConfig = ProjectBuildConfig::buildFromFile (path);
10431043 auto inMemoryConfig = projectModel->findConfigFile (path);
1044- if (*onDiskConfig == *inMemoryConfig) {
1045- qDebug (" Config file modified, content similar ignoring - %s" , path.toStdString ().data ());
1046- return ;
1044+
1045+ if (onDiskConfig) {
1046+ if (*onDiskConfig == *inMemoryConfig) {
1047+ qDebug (" Config file modified, content similar ignoring - %s" ,
1048+ path.toStdString ().data ());
1049+ return ;
1050+ }
1051+ *inMemoryConfig = *onDiskConfig;
10471052 }
1048- *inMemoryConfig = *onDiskConfig;
10491053 newProjectSelected (gui->projectComboBox ->currentIndex ());
10501054
10511055 // TODO - new file created is not working yet.
You can’t perform that action at this time.
0 commit comments