From: Joel Holdsworth Date: Sun, 12 May 2013 15:11:43 +0000 (+0100) Subject: Added All Files to the open file filter list X-Git-Tag: pulseview-0.2.0~364 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=1d43d7677a7ead4ee6e1da49d87a1848b45ef75d Added All Files to the open file filter list --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 7320bf1a..b916999f 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -269,9 +269,13 @@ void MainWindow::show_session_error( 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"), "", - tr("Sigrok Sessions (*.sr)")); + this, tr("Open File"), "", filters); if (!file_name.isEmpty()) load_file(file_name); }