Patch #2961 2010-03-29 00:43

loaden

wizard's default compiler error
Download
2961-wizard_s_defau.patch (671 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2010-10-13 13:00
Assigned to
 
Index: src/plugins/scriptedwizard/wiz.cpp
===================================================================
--- src/plugins/scriptedwizard/wiz.cpp    (revision 6195)
+++ src/plugins/scriptedwizard/wiz.cpp    (working copy)
@@ -346,7 +346,10 @@
     }
 
     // now create the project
+    wxString defCompilerID = CompilerFactory::GetDefaultCompilerID();
+    CompilerFactory::SetDefaultCompiler(GetCompilerID());
     theproject = Manager::Get()->GetProjectManager()->NewProject(prjname);
+    CompilerFactory::SetDefaultCompiler(defCompilerID);
     if (!theproject)
     {
         cbMessageBox(_("Couldn't create the new project:\n") + prjdir, _("Error"), wxICON_ERROR);
loaden 2010-03-29 00:45

Introduction and discussion:[url]http://forums.codeblocks.org/index.php/topic,12244.0.html[/url]