diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-11-17 12:56:00 +0100 |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-11-17 12:58:13 +0100 |
commit | 1e6180c1de906864d2d6d73a9e18ed67574d4ed8 (patch) | |
tree | 4efc6242000a81e8d509ba36d1d7620ab78e619d /tools/qttracereplay/main.cpp | |
parent | 009f01107fd062c1cd478fc9dbf20d927ff9c459 (diff) | |
download | qt4-tools-1e6180c1de906864d2d6d73a9e18ed67574d4ed8.tar.gz |
qttracerelay: Handle wrong command line parameters
Task-number: QTBUG-5550
Reviewed-by: TrustMe
Diffstat (limited to 'tools/qttracereplay/main.cpp')
-rw-r--r-- | tools/qttracereplay/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qttracereplay/main.cpp b/tools/qttracereplay/main.cpp index 1d21a21324..e62cf2cb38 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(); |