summaryrefslogtreecommitdiffstats
path: root/tools/qttracereplay
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-11-17 11:56:00 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-11-17 11:58:13 (GMT)
commit1e6180c1de906864d2d6d73a9e18ed67574d4ed8 (patch)
tree4efc6242000a81e8d509ba36d1d7620ab78e619d /tools/qttracereplay
parent009f01107fd062c1cd478fc9dbf20d927ff9c459 (diff)
downloadQt-1e6180c1de906864d2d6d73a9e18ed67574d4ed8.zip
Qt-1e6180c1de906864d2d6d73a9e18ed67574d4ed8.tar.gz
Qt-1e6180c1de906864d2d6d73a9e18ed67574d4ed8.tar.bz2
qttracerelay: Handle wrong command line parameters
Task-number: QTBUG-5550 Reviewed-by: TrustMe
Diffstat (limited to 'tools/qttracereplay')
-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();