summaryrefslogtreecommitdiffstats
path: root/tools/qttracereplay/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qttracereplay/main.cpp')
-rw-r--r--tools/qttracereplay/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qttracereplay/main.cpp b/tools/qttracereplay/main.cpp
index 1d21a21..e62cf2c 100644
--- a/tools/qttracereplay/main.cpp
+++ b/tools/qttracereplay/main.cpp
@@ -162,6 +162,12 @@ int main(int argc, char **argv)
return 1;
}
+ QFile file(argv[1]);
+ if (!file.exists()) {
+ printf("%s does not exist\n", argv[1]);
+ return 1;
+ }
+
ReplayWidget *widget = new ReplayWidget(argv[1]);
widget->show();