]> sigrok.org Git - pulseview.git/commitdiff
Small tidy of pv::MainWindow::on_actionOpen_triggered
authorJoel Holdsworth <redacted>
Sat, 11 Jan 2014 09:31:58 +0000 (09:31 +0000)
committerJoel Holdsworth <redacted>
Sat, 11 Jan 2014 09:31:58 +0000 (09:31 +0000)
pv/mainwindow.cpp

index ddaeeda977c5ba8ad42769179fd084fa78d889c0..b6d72fbcb57fa6ad4baad61cbdcfe55ce5f37987 100644 (file)
@@ -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);
 }