Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: newbie on March 28, 2008, 07:33:48 am

Title: clicking on error message opens a file under different heading
Post by: newbie on March 28, 2008, 07:33:48 am
Let's say i have a file Foo.cpp in the bar directory.  When i open the file, the heading of the tab of the open file is bar/Foo.cpp.

Now, suppose there's an error in the file.  If i compile, it will appear in the build messages.  When i click the error message, the file opens a new tab with the heading Foo.cpp.  Why does it open the file again?  It should reuse the already-open file.  There's the potential that if a user fixes the error in one tab and closes it and visits the other tab (amidst a lot of other things), that the fixes could be lost.  A window does pop up a while later that says "File so-and-so is modified outside the IDE...", but in between, there's potential for lost changes.

Is there a setting that will fix this?
Title: Re: clicking on error message opens a file under different heading
Post by: mandrav on March 28, 2008, 08:36:00 am
Although your post is highly non-informative, have a look at this (http://forums.codeblocks.org/index.php/topic,7751.msg58348.html#msg58348). My psychic powers tell me it might be what you need to read...
Title: Re: clicking on error message opens a file under different heading
Post by: newbie on March 28, 2008, 07:18:19 pm
Although your sarcasm is highly-nonappreciative, that was just what I wanted.  Thanks!  (I did try searching beforehand, but I guess the search terms I used were highly non-informative)
Title: Re: clicking on error message opens a file under different heading
Post by: stahta01 on March 31, 2008, 07:41:46 am
Although your sarcasm is highly-nonappreciative, that was just what I wanted.  Thanks!  (I did try searching beforehand, but I guess the search terms I used were highly non-informative)

I appreciated the sarcasm.

Tim S

PS, I also can not read minds.