瀏覽代碼

Fix: the generator choice value was hardcoded and overrode the value passed as a command-line param (desktop shortcuts)

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

+ 4 - 1
Source/MFCDialog/CMakeSetupDialog.cpp

@@ -206,7 +206,10 @@ BOOL CMakeSetupDialog::OnInitDialog()
     {
     m_GeneratorChoice.AddString(i->c_str());
     }
-  m_GeneratorChoiceString = "Visual Studio 6";
+  if (m_GeneratorChoiceString == _T("")) 
+    {
+    m_GeneratorChoiceString = "Visual Studio 6";
+    }
 
   // try to load the cmake cache from disk
   this->LoadCacheFromDiskToGUI();