]> git.sesse.net Git - vlc/commitdiff
Clean.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 29 Mar 2007 20:15:45 +0000 (20:15 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 29 Mar 2007 20:15:45 +0000 (20:15 +0000)
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.hpp

index 849675b2fd06eb170d739667be20f3cb6679cb5a..a085c5304484dd2ee9eab726f21685686e05d729 100644 (file)
@@ -83,9 +83,6 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     /* Change the text that was uncool in the usual box */
     listLabel[5]->setText( qtr( "Filter:" ) );
 
-    /* Hacks Continued Catch the close event */
-    dialogBox->installEventFilter( this );
-
     // Hide the subtitles control by default.
     ui.subFrame->hide();
 
@@ -192,18 +189,6 @@ void FileOpenPanel::clear()
     ui.subInput->setEditText( "" );
 }
 
-bool FileOpenPanel::eventFilter(QObject *object, QEvent *event)
-{
-    if ( ( object == dialogBox ) && ( event->type() == QEvent::Hide ) )
-    {
-        event->ignore();
-        return true;
-    }
-    // standard event processing
-    else
-        return QObject::eventFilter(object, event);
-}
-
 void FileOpenPanel::toggleSubtitleFrame()
 {
     if (ui.subFrame->isVisible())
index b063a4280652b142da6be69866839a44ac844017..ef003f4dd59f1873b08e97058e424fb782503a9d 100644 (file)
@@ -79,7 +79,6 @@ private:
     QStringList browse( QString );
     FileOpenBox *dialogBox;
     QLineEdit *lineFileEdit;
-    bool eventFilter(QObject *, QEvent *);
 public slots:
     virtual void updateMRL();
 private slots: