diff options
Diffstat (limited to 'examples/linguist/hellotr/main.cpp')
-rw-r--r-- | examples/linguist/hellotr/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/linguist/hellotr/main.cpp b/examples/linguist/hellotr/main.cpp index bf7effc46..24206f093 100644 --- a/examples/linguist/hellotr/main.cpp +++ b/examples/linguist/hellotr/main.cpp @@ -64,7 +64,8 @@ int main(int argc, char *argv[]) //! [5] QTranslator translator; //! [5] //! [6] - translator.load("hellotr_la"); + if (!translator.load("hellotr_la")) + return 1; //! [6] //! [7] app.installTranslator(&translator); //! [4] //! [7] |