X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=b916999fb9bd2a1fcfd2c691f5aa89a6081f15ba;hb=cec48d1618edd0f28f21d5351f53692876222e16;hp=97abbf8eff8926bd0d6fe46c6e5624760250ce6f;hpb=b99cfc426de26a959f6b3cf1cfe2500469ce152b;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 97abbf8e..b916999f 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -19,7 +19,7 @@ */ #ifdef ENABLE_SIGROKDECODE -#include +#include #endif #include @@ -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); }