ui/views/listview/src/glxlistview.cpp
changeset 54 0f0f3f26f787
parent 50 a0f57508af73
child 71 27f2d7aec52a
--- a/ui/views/listview/src/glxlistview.cpp	Fri Jul 23 20:41:04 2010 +0530
+++ b/ui/views/listview/src/glxlistview.cpp	Fri Aug 06 20:44:25 2010 +0530
@@ -57,7 +57,6 @@
 void GlxListView::deActivate()
 {
     qDebug("GlxListView::deActivate()");
-    disconnect(mWindow, SIGNAL(orientationChanged(Qt::Orientation)), this, SLOT(orientationChanged(Qt::Orientation)));
 }
 
 void GlxListView::setModel(QAbstractItemModel *model) 
@@ -206,7 +205,19 @@
     if ( mModel ) {
         mModel->setData( index, index.row(), GlxFocusIndexRole );
     }
-    emit actionTriggered( EGlxCmdAlbumGridOpen );
+    
+    int curstate = NO_LIST_S; 
+    qDebug() << "GlxListView::itemSelected READING STATE ";
+    QVariant variant = mModel->data( mModel->index(0,0), GlxSubStateRole );    
+    if ( variant.isValid() &&  variant.canConvert<int> () ) {
+        curstate = variant.value<int>();
+    }
+    qDebug() << "GlxMenuManager::viewSubState = " << curstate ;
+    if(curstate == FETCHER_ALBUM_S ){
+        emit actionTriggered( EGlxCmdFetcherAlbumGridOpen );
+    }else {        
+        emit actionTriggered( EGlxCmdAlbumGridOpen );
+    }
 }