From: Joel Holdsworth Date: Sat, 11 Jan 2014 09:31:58 +0000 (+0000) Subject: Small tidy of pv::MainWindow::on_actionOpen_triggered X-Git-Tag: pulseview-0.2.0~155 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6866d5de8994a7afe3bac9f7706cf9b8586fbbdd;p=pulseview.git Small tidy of pv::MainWindow::on_actionOpen_triggered --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index ddaeeda9..b6d72fbc 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); }