On Mon, Jan 14, 2008 at 01:25:06PM +0100, Horst Schirmeier wrote:

> On Mon, 14 Jan 2008, Enrico Forestieri wrote:
> > On Mon, Jan 14, 2008 at 08:06:17AM +0100, Jürgen Spitzmüller wrote:
> > > Enrico Forestieri wrote:
> > > > The attached patch fixes the problem in trunk.
> > > > Jürgen, OK for branch, too?
> > > 
> > > Yes.
> > 
> > Committed:
> > http://www.lyx.org/trac/changeset/22547
> 
> Haha, okay. Note to self: Check for new mailinglist posts before working
> on LyX bugs... I already had doubts about myself as I was absolutely
> unable to reproduce the described behaviour. After having updated to
> r22528. ;)

The problem is that in Qt 4.2 QListWidget::currentRow() returns the
row of the previous selected entry, not the current one, when the
signal itemSelectionChanged() is emitted. This was apparently corrected
in Qt 4.3. Using the right signal fixes it for every Qt4 version.
This was not your fault, as it was already there, me thinks.

-- 
Enrico

Reply via email to