projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
611c862
)
Remove redundant isNull() check - isEmpty is a superset of isNull
author
Devan Lai
<devan.lai@gmail.com>
Fri, 19 Apr 2019 05:15:19 +0000
(22:15 -0700)
committer
Soeren Apel
<soeren@apelpie.net>
Mon, 22 Apr 2019 13:27:10 +0000
(15:27 +0200)
pv/session.cpp
patch
|
blob
|
history
diff --git
a/pv/session.cpp
b/pv/session.cpp
index 91e39756456045ccc37dd46ae66c8c9f53b4c8f3..e412f501bdf8a59c846994c1fa62ee0bf788585d 100644
(file)
--- a/
pv/session.cpp
+++ b/
pv/session.cpp
@@
-588,7
+588,7
@@
void Session::load_file(QString file_name,
}
// Default the setup filename with a .pvs extension if none is provided
- if (setup_file_name.isEmpty()
|| setup_file_name.isNull()
) {
+ if (setup_file_name.isEmpty()) {
setup_file_name = file_name;
setup_file_name.truncate(setup_file_name.lastIndexOf('.'));
setup_file_name.append(".pvs");