Bug 245301 - Message list scroll bar doesn't work after deleting a message
Summary: Message list scroll bar doesn't work after deleting a message
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: message list (show other bugs)
Version: 1.13.5
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 11:59 UTC by mps
Modified: 2012-08-24 13:33 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mps 2010-07-21 11:59:37 UTC
Version:           1.13.5 (using KDE 4.4.4) 
OS:                Linux

After deleting a message from the message list (by selecting and pressing delete) in a folder with more than a screenful of messages, the messagelist is updated, but the scroll bar does not work until you click on another message. Basically the scroll bar 'handle' expands to the length of the kmail gui and you can't scroll down. Clicking on a message seems to reset the scrollbar and all works normally.

Does not happen when messages are moved, only when they are deleted.

Reproducible: Always

Steps to Reproduce:
Open the messagelist for a folder with more than a screenfull of messages.

Select one message (or a thread)

Delete  it

notice that scroll bar of message list is no longer active.



OS: Linux (x86_64) release 2.6.33.3-85.fc13.x86_64
Compiler: gcc

Using kde-redhat binaries with current QT 4.7 beta.
Comment 1 Manuel Nickschas 2010-08-04 13:00:48 UTC
I can confirm the issue with both KMail-4.4 and KMail2 from trunk. Looks like the scrollbar is set to an invalid size or something like that, and also the message list is scrolled to the top (if you have it sorted in ascending order).
Comment 2 Manuel Nickschas 2010-08-04 13:03:00 UTC
Just a thought, since it used to work correct in KMail-4.4 and then all of a sudden started to break, maybe it's related to Qt 4.7? I hadn't used KMail in a while, so I can't tell if it's directly related to my Qt upgrade, but I don't assume there have been many changes in KMail-4.4 between the time I last used it before the break and now...
Comment 3 Manuel Nickschas 2010-08-04 13:13:40 UTC
Talking to tokoe on IRC further narrows it down: It always breaks when the message list is scrolled all the way down when *selecting* the message. Deleting works fine if the message-to-be-deleted is selected when the scrollbar is not at the bottom end (even if after selection you scroll down).

Excerpt from the conversation for future reference:

<tokoe> Sput: we were aware that this bug only happens with Qt4.7
<tokoe> Sput: but i thought it is also related to the akonadi port of kmail
<tokoe> Sput: however if it is reproducable with KMail 4.4 and Qt 4.7, then it is definitely a bug in Qt
<tokoe> Sput: it happens when your scrollbar is visible and you have scrolled it down to the end
<tokoe> Sput: i tracked it down to a different sequence of signal emission and selection change
<Sput> you need to *select* the message when the scrollbar is at the end
<Sput> scrolling up, selecting a message, scrolling down, deleting works fine
<Sput> scrolling down, selecting, scrolling up, deleting breaks
<tokoe> Sput: the code in the messagelist library reacts on a row removed signal, stores the selection, checks some conditions and restores the selection
<tokoe> Sput: and somehow with qt 4.7 the selection is a different then with qt 4.6
<tokoe> Sput: iirc in 4.6 the selection is still the row to be removed, while in 4.7 the selection is the row after/before the one to remove

<Sput> shall I include the IRC log?
<tokoe> Sput: yes, but with a big disclaimer for 'if i recalled correctly'...
Comment 4 Szokovacs Robert 2010-08-23 22:33:06 UTC
With KDE 4.5.0 installed on kubuntu (ppa-backports), the bug is still there, QT version: 4:4.7.0~beta2-0ubuntu3~lucid1~ppa5
Comment 5 mps 2010-08-31 16:24:27 UTC
Persists in 4.5.1 with QT 4.7-rc1 from kde-redhat.
Comment 6 ancow 2010-09-09 04:07:07 UTC
For me, this started with the upgrade to KDE 4.5.0, which coincided with an upgrade to QT 4.7.
Comment 7 Hans-Peter Guggenbichler 2010-09-24 10:34:38 UTC
I experience the same behavior on kubuntu maverick. This is kmail 1.13.5 using KDE 4.5.1
Comment 8 Arkadiusz Miskiewicz 2010-09-25 03:15:01 UTC
Started to happen here after Qt upgrade to 4.7 (kdepim 4.4.6, kde 4.5.1). With Qt 4.6.3 everything is fine.
Comment 10 Hans-Peter Guggenbichler 2010-09-27 09:53:11 UTC
After todays qt update, this behaviour is gone.
Comment 11 Bernd Oliver Sünderhauf 2012-08-24 12:44:14 UTC
Still applies to kmail2, component: message list.
Seems to be resolved upstream, though.