Переглянути джерело

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();