diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-11-17 11:56:00 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-11-17 11:58:13 (GMT) |
commit | 1e6180c1de906864d2d6d73a9e18ed67574d4ed8 (patch) | |
tree | 4efc6242000a81e8d509ba36d1d7620ab78e619d | |
parent | 009f01107fd062c1cd478fc9dbf20d927ff9c459 (diff) | |
download | Qt-1e6180c1de906864d2d6d73a9e18ed67574d4ed8.zip Qt-1e6180c1de906864d2d6d73a9e18ed67574d4ed8.tar.gz Qt-1e6180c1de906864d2d6d73a9e18ed67574d4ed8.tar.bz2 |
qttracerelay: Handle wrong command line parameters
Task-number: QTBUG-5550
Reviewed-by: TrustMe
-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 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(); |