[Bug 262046] Cannot show Mails from search result

Tobias Koenig tokoe at kde.org
Thu Jan 6 09:04:03 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=262046


Tobias Koenig <tokoe at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Tobias Koenig <tokoe kde org>  2011-01-06 10:04:02 ---
commit d494cccc8fda878c4d7bc8cebe29d7b6453621c6
branch master
Author: Tobias Koenig <tokoe at kde.org>
Date:   Thu Jan 6 10:05:35 2011 +0100

    Open message viewer when selecting mail from search results

    The refactoring to ThreadModel/ThreadSelectorModel broke the
    connection in the SearchResultView

    BUG: 262046

diff --git a/mobile/mail/kmail-mobile.qml b/mobile/mail/kmail-mobile.qml
index 0a7b0c0..6c77807 100644
--- a/mobile/mail/kmail-mobile.qml
+++ b/mobile/mail/kmail-mobile.qml
@@ -524,6 +524,16 @@ KPIM.MainView {
       navigationModel : _itemNavigationModel
       anchors.fill : parent
     }
+    QML.Connections {
+      target : _itemNavigationModel
+      onCurrentRowChanged : {
+        if ( !application.isSingleMessage( _itemNavigationModel.currentRow ) )
+          return;
+
+        guiStateManager.pushUniqueState(
KPIM.GuiStateManager.ViewSingleItemState );
+        _itemActionModel.select( _itemNavigationModel.currentRow, 3 );
+      }
+    }

     resultText: KDE.i18np( "One message found", "%1 messages found",
searchMessageListView.count )
   }

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list