+
+void PrefsDialog::reset()
+{
+ int ret = QMessageBox::question(this, qtr("Reset Preferences"),
+ qtr("This will reset your VLC media player preferences.\n"
+ "Are you sure you want to continue?"),
+ QMessageBox::Ok | QMessageBox::Cancel,
+ QMessageBox::Ok);
+ if ( ret == QMessageBox::Ok )
+ {
+ config_ResetAll( p_intf );
+ // TODO reset changes ?
+ config_SaveConfigFile( p_intf, NULL );
+ }
+}