]> git.sesse.net Git - vlc/commitdiff
Qt4: close() slot problem fixed.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 11 Oct 2007 19:48:34 +0000 (19:48 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 11 Oct 2007 19:48:34 +0000 (19:48 +0000)
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.hpp

index a3848a0d5c57f1a9ac206b47ba4b60146efb154f..1b392504604b1b8113685eb11f25f73dced2da8e 100644 (file)
@@ -82,7 +82,9 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
     ui.buttonBox->addButton( closeButton, QDialogButtonBox::AcceptRole );
     ui.buttonBox->addButton( cancelButton, QDialogButtonBox::RejectRole );
 
-    connect( mediatype, SIGNAL( currentIndexChanged( int ) ), slayout, SLOT( setCurrentIndex( int ) ) );
+    CONNECT( mediatype, currentIndexChanged( int ), slayout,
+            setCurrentIndex( int ) );
+    CONNECT( closeButton, clicked(), this, hide() );
 
 }
 
index 736975b756e760697a1117375342a0e1d58c31ea..eabb1cc87e791b73618c765c97730646b2404f2a 100644 (file)
@@ -87,9 +87,6 @@ private:
     QDateEdit *date;
     QLabel *schetimelabel, *schedatelabel, *schetimerepeat;
     QSpinBox *scherepeatnumber;
-
-private slots:
-    void close();
 };
 
 #endif