projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fbda3c
)
Small tidy of pv::MainWindow::on_actionOpen_triggered
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 11 Jan 2014 09:31:58 +0000
(09:31 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 11 Jan 2014 09:31:58 +0000
(09:31 +0000)
pv/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/pv/mainwindow.cpp
b/pv/mainwindow.cpp
index ddaeeda977c5ba8ad42769179fd084fa78d889c0..b6d72fbcb57fa6ad4baad61cbdcfe55ce5f37987 100644
(file)
--- 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);
}