Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
odthelpbrowser/main.cpp: Don't continue if file cannot be loaded
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 6 May 2018 11:53:48 +0000 (12:53 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 6 May 2018 11:53:48 +0000 (12:53 +0100)
source/tools/odthelpbrowser/main.cpp

index 2d8aa4d..3da4d51 100644 (file)
@@ -54,9 +54,10 @@ bool ODTHelpBrowser::OnInit()
        
        std::string fileToLoad = std::string(documentFilename.mb_str());
        
-       if (!odtDocument.LoadDocument(fileToLoad);
+       if (!odtDocument.LoadDocument(fileToLoad))
        {
                std::cout << "Unable to open file " << documentFilename.mb_str() << std::endl;
+               return false;
        }
 
        // Setup the form and load in the document data.
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy