vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/open.cpp
/* If Cancel is pressed or escaped */
If Cancel is pressed or escaped
If Cancel is pressed or escaped
void OpenDialog::cancel()
{
    for( int i = 0; i < OPEN_TAB_MAX; i++ )
        qobject_cast<OpenPanel*>( ui.Tab->widget( i ) )->clear();
    itemsMRL.clear();
    optionsMRL.clear();
    if( i_action_flag == SELECT ) reject();
    else hide();
}
void OpenDialog :: cancel ( ) { for ( int i = 0 ; i < OPEN_TAB_MAX ; i ++ ) qobject_cast < OpenPanel * > ( ui . Tab -> widget ( i ) ) -> clear ( ) ; itemsMRL . clear ( ) ; optionsMRL . clear ( ) ; if ( i_action_flag == SELECT ) reject ( ) ; else hide ( ) ; }
If Cancel is pressed or escaped
If Cancel is pressed or escaped
/* Clear the panels */ /* Clear the variables */ /* If in Select Mode, reject instead of hiding */