[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/messagelist
From: Stephen Kelly <steveire () gmail ! com>
Date: 2010-05-11 13:37:08
Message-ID: 20100511133708.C563BAC8B4 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1125469 by skelly:
Don't create a new QItemSelectionModel each time a folder is selected.
Fixes the bug of a collection not appearing populated on startup.
BUG: 233395
M +1 -2 pane.cpp
--- trunk/KDE/kdepim/messagelist/pane.cpp #1125468:1125469
@@ -415,10 +415,9 @@
Widget *w = static_cast<Widget*>( currentWidget() );
if ( w ) {
- QItemSelectionModel *s = new QItemSelectionModel( d->mModel, w );
+ QItemSelectionModel *s = d->mWidgetSelectionHash[w];
MessageList::StorageModel *m = new MessageList::StorageModel( d->mModel, s, w );
w->setStorageModel( m, preSelectionMode );
- d->mWidgetSelectionHash[w] = s;
if ( !overrideLabel.isEmpty() ) {
int index = indexOf( w );
setTabText( index, overrideLabel );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic