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

List:       kde-commits
Subject:    KDE/kdepim/messagelist
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2010-12-11 21:50:48
Message-ID: 20101211215048.534DCAC8A7 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1205634 by tokoe:

Emit the changed signal first, so that listening classes
can adapt their selection models to the current one and then
do the selection changes.

BUG: 250007


 M  +2 -2      pane.cpp  


--- trunk/KDE/kdepim/messagelist/pane.cpp #1205633:1205634
@@ -367,6 +367,8 @@
 
 void Pane::Private::onCurrentTabChanged()
 {
+  emit q->currentTabChanged();
+
   Widget *w = static_cast<Widget*>( q->currentWidget() );
   QItemSelectionModel *s = mWidgetSelectionHash[w];
 
@@ -378,8 +380,6 @@
 
   connect( mSelectionModel, SIGNAL(selectionChanged(QItemSelection, QItemSelection)),
            q, SLOT(onSelectionChanged(QItemSelection, QItemSelection)) );
-
-  emit q->currentTabChanged();
 }
 
 void Pane::Private::onTabContextMenuRequest( const QPoint &pos )
[prev in list] [next in list] [prev in thread] [next in thread] 

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