#endif /* Disc Probing under Windows */
/* CONNECTs */
- BUTTONACT( ui.dvdRadioButton, updateButtons());
- BUTTONACT( ui.vcdRadioButton, updateButtons());
- BUTTONACT( ui.audioCDRadioButton, updateButtons());
- BUTTONACT( ui.dvdsimple, updateButtons());
+ BUTTONACT( ui.dvdRadioButton, updateButtons() );
+ BUTTONACT( ui.vcdRadioButton, updateButtons() );
+ BUTTONACT( ui.audioCDRadioButton, updateButtons() );
+ BUTTONACT( ui.dvdsimple, updateButtons() );
+ BUTTONACT( ui.browseDiscButton, browseDevice() );
CONNECT( ui.deviceCombo, editTextChanged( QString ), this, updateMRL());
CONNECT( ui.titleSpin, valueChanged( int ), this, updateMRL());
emit mrlUpdated( mrl );
}
+void DiscOpenPanel::browseDevice()
+{
+ QString dir = QFileDialog::getExistingDirectory( 0,
+ qtr("Open a device or a VIDEO_TS directory") );
+ if (!dir.isEmpty()) {
+ ui.deviceCombo->setEditText( dir );
+ }
+ updateMRL();
+}
/**************************************************************************
* Open Network streams and URL pages *