Browse Source

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

Sebastien Barre 24 years ago
parent
commit
3d24bc75bd
1 changed files with 4 additions and 1 deletions
  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_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
   // try to load the cmake cache from disk
   this->LoadCacheFromDiskToGUI();
   this->LoadCacheFromDiskToGUI();