projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d64d159
)
Only the open the file if the user clicked ok in the dialog
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Wed, 24 Apr 2013 19:08:24 +0000
(20:08 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Wed, 24 Apr 2013 19:08:24 +0000
(20:08 +0100)
pv/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/pv/mainwindow.cpp
b/pv/mainwindow.cpp
index fc5872875ef6ace5f44af61e3f964168d3a7bd64..f95cd45123eb1345f56a65160ed7b6268d3b7d18 100644
(file)
--- a/
pv/mainwindow.cpp
+++ b/
pv/mainwindow.cpp
@@
-251,7
+251,8
@@
void MainWindow::on_actionOpen_triggered()
const QString file_name = QFileDialog::getOpenFileName(
this, tr("Open File"), "",
tr("Sigrok Sessions (*.sr)"));
- load_file(file_name);
+ if (!file_name.isEmpty())
+ load_file(file_name);
}
void MainWindow::on_actionConnect_triggered()