]> git.sesse.net Git - vlc/commitdiff
Overload toggleVisible() to update list with media from other interfaces.
authorMark Bidewell <mark.bidewell@alumni.clemson.edu>
Wed, 4 Feb 2009 23:42:57 +0000 (18:42 -0500)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 8 Feb 2009 17:29:26 +0000 (18:29 +0100)
Overload toggleVisible() to update list with media from other interfaces.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.hpp

index adaf2d29312cceb909be9e76c2346267646d67ec..b8232d3ecc470b540d5ef90a611e8af643b54d88 100644 (file)
@@ -835,5 +835,20 @@ void VLMWrapper::EditSchedule( const QString name, const QString input,
     }
 }
 
+void VLMDialog::toggleVisible()
+{
+    QList<VLMAWidget *>::iterator it;
+    for( it = vlmItems.begin(); it != vlmItems.end(); it++ )
+    {
+        VLMAWidget *item =  *it;
+        delete item;
+        item = NULL;
+    }
+    vlmItems.clear();
+    ui.vlmListItem->clear();
+    mediasPopulator();
+    QVLCDialog::toggleVisible();
+}
+
 
 #endif
index 5187ac68fab78f97a9a6ecd1e1b381412945a7b5..9837064fc622c667a5609b00cff20093f3db91bf 100644 (file)
@@ -78,6 +78,7 @@ public:
         return instance;
     };
     virtual ~VLMDialog();
+    void toggleVisible();
 
     VLMWrapper *vlmWrapper;
     vlm_t *p_vlm;