ui/viewmanagement/statehandler/src/glxgridstate.cpp
changeset 24 99ad1390cd33
parent 23 74c9f037fd5d
child 26 c499df2dbb33
--- a/ui/viewmanagement/statehandler/src/glxgridstate.cpp	Fri Mar 19 09:28:59 2010 +0200
+++ b/ui/viewmanagement/statehandler/src/glxgridstate.cpp	Fri Apr 16 14:58:46 2010 +0300
@@ -67,6 +67,8 @@
         
    case EGlxCmdAddToAlbum :
    case EGlxCmdDelete :
+   case EGlxCmdRemoveFrom :
+   case EGlxCmdSend :       
        mStateManager->enterMarkingMode();
        mIsMarkingMode = TRUE;
        mCommandId = id;
@@ -142,13 +144,14 @@
 void GlxGridState::setTranstionParameter(NavigationDir dir, GlxEffect &effect, GlxViewEffect &viewEffect)
 {
     qDebug("GlxListState::setTranstionParameter dir = %d", dir);
-    if ( dir == NO_DIR) {
+    if ( dir == NO_DIR || dir == FORWARD_DIR) {
         effect = ALBUMLIST_TO_GRID ;
         viewEffect = BOTH_VIEW ;
     }
-    else {
-        effect = NO_EFFECT ;
-        viewEffect = NO_VIEW ;    
+    
+    if ( dir == BACKWARD_DIR){
+        effect = GRID_TO_ALBUMLIST ;
+        viewEffect = BOTH_VIEW ;    
     }
 }