From 6866d5de8994a7afe3bac9f7706cf9b8586fbbdd Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 11 Jan 2014 09:31:58 +0000 Subject: [PATCH] Small tidy of pv::MainWindow::on_actionOpen_triggered --- pv/mainwindow.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index ddaeeda..b6d72fb 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -326,13 +326,11 @@ 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"), "", filters); + this, tr("Open File"), "", tr( + "Sigrok Sessions (*.sr);;" + "All Files (*.*)")); if (!file_name.isEmpty()) load_file(file_name); } -- 2.30.2