]> git.sesse.net Git - vlc/commitdiff
Qt: fix some issues about displaying the media information.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 31 Dec 2008 12:27:35 +0000 (13:27 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 31 Dec 2008 12:43:08 +0000 (13:43 +0100)
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/dialogs/mediainfo.cpp

index eb71bb6853a539b3f922ab7fd0d70dc63096f4c8..e47e8a75c7540d09c0889e4ce69133daf0bb52ba 100644 (file)
@@ -158,7 +158,11 @@ MetaPanel::MetaPanel( QWidget *parent,
  **/
 void MetaPanel::update( input_item_t *p_item )
 {
-    if( !p_item ) clear();
+    if( !p_item )
+    {
+        clear();
+        return;
+    }
 
     /* Don't update if you are in edit mode */
     if( b_inEditMode ) return;
@@ -320,6 +324,7 @@ void MetaPanel::clear()
     art_cover->update( NULL );
 
     setEditMode( false );
+    emit uriSet( "" );
 }
 
 /**
@@ -354,7 +359,11 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent,
  **/
 void ExtraMetaPanel::update( input_item_t *p_item )
 {
-    if( !p_item ) clear();
+    if( !p_item )
+    {
+        clear();
+        return;
+    }
 
     QStringList tempItem;
     QList<QTreeWidgetItem *> items;
@@ -425,7 +434,11 @@ InfoPanel::InfoPanel( QWidget *parent,
  **/
 void InfoPanel::update( input_item_t *p_item)
 {
-    if( !p_item ) clear();
+    if( !p_item )
+    {
+        clear();
+        return;
+    }
 
     InfoTree->clear();
     QTreeWidgetItem *current_item = NULL;
index e908b8734b79b99d2ebd6ae43bce86e58b45b50d..5053b9d0d23dc4eedbaf44eb41bc2a30ea669031 100644 (file)
@@ -101,13 +101,13 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
          * Connects on the various signals of input_Manager
          * For the currently playing element
          **/
-        CONNECT( THEMIM, infoChanged( input_item_t* ),
+        CONNECT( THEMIM->getIM(), infoChanged( input_item_t* ),
                  IP, update( input_item_t* ) );
-        CONNECT( THEMIM, metaChanged( input_item_t* ),
+        CONNECT( THEMIM->getIM(), metaChanged( input_item_t* ),
                  MP, update( input_item_t* ) );
-        CONNECT( THEMIM, metaChanged( input_item_t* ),
+        CONNECT( THEMIM->getIM(), metaChanged( input_item_t* ),
                  EMP, update( input_item_t* ) );
-        CONNECT( THEMIM, statisticsUpdated( input_item_t* ),
+        CONNECT( THEMIM->getIM(), statisticsUpdated( input_item_t* ),
                  ISP, update( input_item_t* ) );
 
         if( THEMIM->getInput() )