vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/preferences.cpp
/* Reset all the preferences, when you click the button */
Reset all the preferences, when you click the button
Reset all the preferences when you click the button
void PrefsDialog::reset()
{
    int ret = QMessageBox::question(
                 this,
                 qtr( "Reset Preferences" ),
                 qtr( "Are you sure you want to reset your VLC media player preferences?" ),
                 QMessageBox::Ok | QMessageBox::Cancel,
                 QMessageBox::Ok);
    if( ret == QMessageBox::Ok )
    {
        config_ResetAll( p_intf );
        config_SaveConfigFile( p_intf );
        getSettings()->clear();
#ifdef _WIN32
        simple_panels[0]->cleanLang();
#endif
        accept();
    }
}
void PrefsDialog :: reset ( ) { int ret = QMessageBox :: question ( this , qtr ( " " ) , qtr ( " " ) , QMessageBox :: Ok | QMessageBox :: Cancel , QMessageBox :: Ok ) ; if ( ret == QMessageBox :: Ok ) { config_ResetAll ( p_intf ) ; config_SaveConfigFile ( p_intf ) ; getSettings ( ) -> clear ( ) ; #ifdef _WIN32 simple_panels [ 0 ] -> cleanLang ( ) ; #endif accept ( ) ; } }
Reset all the preferences, when you click the button
Reset all the preferences when you click the button