Found reason for random mainwindow resize

David Nolden david.nolden.kdevelop at art-master.de
Sun Jun 19 20:15:20 UTC 2011


2011/6/18 Milian Wolff <mail at milianw.de>:
> On Wednesday 08 June 2011 14:30:55 Niko Sams wrote:
>> Hi,
>>
>> while driving home and hacking in the train I found the reason for the
>> strange mainwindow resizing milian and alex had during typing kDebug() <<.
>> I also had it while doing that, but I was already in a string (kDebug() <<
>> "foooo). The reason is that the backgroundparser parses the file while
>> parsing and fails - as
>> the statement is not finished. It then displays a red message in the
>> status bar to state
>> that.
>> For some reason this message is displayed multiple times - concated. And
>> exactly that makes the mainwindow resize.
>> I reproduced it by typing fast.
>
> Yeah, I finally saw that myself. What can we do about it? Here are my ideas
> sorted by my personal preference:
>
> a) make sure that given error message is only shown once at a time
> c) only show one error at a time and make the next one visible thereafter
> b) prevent the statusbar from resizing the whole page
>
> actually a) shouldn't be too hard I think, lets see...

I'd prefer first b) then a), in this order. Because by fixing b) you
fix the framework, by a) you only workaround the problem.




More information about the KDevelop-devel mailing list