[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 48797] ksirc locks when typing first character of server name in "new server" combobox
From:       <qt-bugs () trolltech ! com>
Date:       2002-10-07 15:44:46
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=48797     




------- Additional Comments From qt-bugs@trolltech.com  2002-10-07 17:44 -------
Subject: Re: [Issue N8228]  infinite loop in QComboBox

On Sunday, 6 Oct 2002 20:44 Simon Hausmann wrote:
> Hi Trolls,
>
> (Qt-3.1-Beta2)
>
> An empty, editable combobox with completion enabled causes an
> infinite loop as soon as the user starts editing.
>
> I attached a testcase as well as a simple patch that fixes the bug
> for me.
>
> Simon
>
>

Hi Simon

I was unable to reproduce the bug here at Trolltech.

int QComboBox::completionIndex( const QString & prefix,
                                int startingAt = 0 ) const
{
    int start = startingAt;
    if ( start < 0 || start >= count() )
        start = 0;
    if ( start >= count() )
        return -1;

For me it would return -1 at the
if ( start >= count() )
        return -1;

because both count() and start were 0.

best regartds


Anders Bakken - Trolltech AS, W. Thranes gt. 98, N-0175 Oslo, Norway
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic