Commit b103c00a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Clean.

parent fd8a9517
......@@ -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())
......
......@@ -79,7 +79,6 @@ private:
QStringList browse( QString );
FileOpenBox *dialogBox;
QLineEdit *lineFileEdit;
bool eventFilter(QObject *, QEvent *);
public slots:
virtual void updateMRL();
private slots:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment