瀏覽代碼

FIX: stupid pb fixed (close to being medieval'ed by The Ken)

Sebastien Barre 23 年之前
父節點
當前提交
eebc39d199
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/MFCDialog/CMakeSetupDialog.cpp

+ 2 - 1
Source/MFCDialog/CMakeSetupDialog.cpp

@@ -633,6 +633,8 @@ void CMakeSetupDialog::OnChangeWhereSource()
 // callback for changing the build directory
 void CMakeSetupDialog::OnChangeWhereBuild() 
 {
+  this->UpdateData();
+
   // The build dir has changed, check if there is a cache, and 
   // grab the source dir from it
 
@@ -654,7 +656,6 @@ void CMakeSetupDialog::OnChangeWhereBuild()
     this->OnChangeWhereSource();
     }
 
-  this->UpdateData();
   m_CacheEntriesList.RemoveAll();
   m_CacheEntriesList.ShowWindow(SW_SHOW);
   this->LoadCacheFromDiskToGUI();