void MainWindow::on_actionOpen_triggered()
{
- // Enumerate the file formats
- QString filters(tr("Sigrok Sessions (*.sr)"));
- filters.append(tr(";;All Files (*.*)"));
-
// Show the dialog
const QString file_name = QFileDialog::getOpenFileName(
- this, tr("Open File"), "", filters);
+ this, tr("Open File"), "", tr(
+ "Sigrok Sessions (*.sr);;"
+ "All Files (*.*)"));
if (!file_name.isEmpty())
load_file(file_name);
}
{
switch(_session.get_capture_state()) {
case SigSession::Stopped:
- _session.start_capture(_sampling_bar->get_record_length(),
- boost::bind(&MainWindow::session_error, this,
+ _session.start_capture(
+ boost::bind(&MainWindow::session_error, this,
QString("Capture failed"), _1));
break;