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

List:       kde-commits
Subject:    KDE/kdepim/akonadi/akonadiconsole
From:       Volker Krause <vkrause () kde ! org>
Date:       2009-08-03 14:28:25
Message-ID: 1249309705.549639.7439.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1006346 by vkrause:

ETM gives us a valid item only for the first column, so use that one.
This fixes item selection when clicking on any other column.


 M  +1 -1      browserwidget.cpp  


--- trunk/KDE/kdepim/akonadi/akonadiconsole/browserwidget.cpp #1006345:1006346
@@ -232,7 +232,7 @@
 
 void BrowserWidget::itemActivated(const QModelIndex & index)
 {
-  const Item item = index.data( EntityTreeModel::ItemRole ).value< Item >();
+  const Item item = index.sibling( index.row(), 0 ).data( EntityTreeModel::ItemRole ).value< Item >();
   if ( !item.isValid() ) {
     clear();
     return;
[prev in list] [next in list] [prev in thread] [next in thread] 

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