X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=b916999fb9bd2a1fcfd2c691f5aa89a6081f15ba;hb=1d43d7677a7ead4ee6e1da49d87a1848b45ef75d;hp=7320bf1aa740a488fe014d6e10aac2ba66621aab;hpb=2bcba522a02affd1627d9decc23182626fadfe09;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 7320bf1..b916999 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); }