Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: ollydbg on January 30, 2012, 03:10:52 pm

Title: Reload never works in cc parser test project r7738
Post by: ollydbg on January 30, 2012, 03:10:52 pm
Code
void Frame::OnMenuReloadSelected(wxCommandEvent& event)
{
    if (!ParserTestAppGlobal::s_fileQueue.IsEmpty())
        Start();
}

Hi, morten, the s_fileQueue is always empty after the first run (you delete/cleam them after the parsing), so you never hit the "Start();" again.
Title: Re: Reload never works in cc parser test project r7738
Post by: MortenMacFly on January 30, 2012, 04:30:27 pm
Hi, morten, the s_fileQueue is always empty after the first run (you delete/cleam them after the parsing), so you never hit the "Start();" again.
Yes, this is a missing change after the last refactoring ::). Just remove the If-clause and it should work again.