Right clicking the workspace makes Code::Blocks crash.
if (Projects && (ftd->GetKind() == FileTreeData::ftdkProject)) // Make sure we're looking for projects
should be changed to
if (Projects && ftd && (ftd->GetKind() == FileTreeData::ftdkProject)) // Make sure we're looking for projects
Thank you for this great IDE :D
Making console runner run again:
change the console runner name:
static const wxString strCONSOLE_RUNNER(platform::windows ? _T("cb_strCONSOLE_RUNNER.exe") : _T("cb_strCONSOLE_RUNNER"));
to static const wxString strCONSOLE_RUNNER(platform::windows ? _T("cb_console_runner.exe") : _T("cb_console_runner"));
change the if statement:
if(platform::windows)
{
// for non-win platforms, use m_ConsoleTerm to run the console app
wxString term = Manager::Get()->GetConfigManager(_T("app"))->Read(_T("/console_terminal"), DEFAULT_CONSOLE_TERM);
term.Replace(_T("$TITLE"), _T("'") + m_Project->GetTitle() + _T("'"));
cmd << term << _T(" 'LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ");
}
to if(!platform::windows)
{
// for non-win platforms, use m_ConsoleTerm to run the console app
wxString term = Manager::Get()->GetConfigManager(_T("app"))->Read(_T("/console_terminal"), DEFAULT_CONSOLE_TERM);
term.Replace(_T("$TITLE"), _T("'") + m_Project->GetTitle() + _T("'"));
cmd << term << _T(" 'LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ");
}