From 790960e292ace01618c6e7faa8cb8edfba5c8337 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 4 Feb 2019 00:28:18 +0100 Subject: [PATCH] reload project persistent env even if it's in a group --- src/u_dubproject.pas | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/u_dubproject.pas b/src/u_dubproject.pas index 38c84a4d..729b5fa5 100644 --- a/src/u_dubproject.pas +++ b/src/u_dubproject.pas @@ -846,8 +846,7 @@ begin fHasLoaded := true; updateFields; - if not inGroup then - restorePersistentMetadata(); + restorePersistentMetadata(); subjProjChanged(fProjectSubject, self); fModified := false; @@ -967,14 +966,17 @@ begin LoadFromFile(f); except end; - t := values['last_dexed_buildType']; - c := values['last_dexed_config']; - if t.isNotEmpty and c.isNotEmpty then - for i := 0 to configurationCount-1 do - if configurationName(i) = t + ' - ' + c then + if not inGroup then begin - setActiveConfigurationIndex(i); - break; + t := values['last_dexed_buildType']; + c := values['last_dexed_config']; + if t.isNotEmpty and c.isNotEmpty then + for i := 0 to configurationCount-1 do + if configurationName(i) = t + ' - ' + c then + begin + setActiveConfigurationIndex(i); + break; + end; end; fMetaEnv.Clear; fMetaEnv.AddText(values['project_environment_vars']);