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 a3848a0..1b39250 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 );
 
     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 736975b..eabb1cc 100644 (file)
@@ -87,9 +87,6 @@ private:
     QDateEdit *date;
     QLabel *schetimelabel, *schedatelabel, *schetimerepeat;
     QSpinBox *scherepeatnumber;
     QDateEdit *date;
     QLabel *schetimelabel, *schedatelabel, *schetimerepeat;
     QSpinBox *scherepeatnumber;
-
-private slots:
-    void close();
 };
 
 #endif
 };
 
 #endif