projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ViewItem: Moved bg_colour_state into ViewItemPaintParams
[pulseview.git]
/
main.cpp
diff --git
a/main.cpp
b/main.cpp
index 2119b81e50d778daf1ca3e2b6ba4fc09bd8b3f97..690a559c29e9a8952b74e2a840475b227650d5b3 100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-136,10
+136,11
@@
int main(int argc, char *argv[])
if (argc - optind > 1) {
fprintf(stderr, "Only one file can be opened.\n");
return 1;
if (argc - optind > 1) {
fprintf(stderr, "Only one file can be opened.\n");
return 1;
- } else if (argc - optind == 1) {
- open_file = argv[argc - 1];
}
}
+ if (argc - optind == 1)
+ open_file = argv[argc - 1];
+
// Initialise libsigrok
context = sigrok::Context::create();
#ifdef ANDROID
// Initialise libsigrok
context = sigrok::Context::create();
#ifdef ANDROID