Get rid of all that logic in eROSystem constructor. Constructors are supposed to initialize objects but that's all. Don't write too much logic into constructors or you'll have problems like this. Consider moving the logic to another method:
Qt Code:
MyObject obj; ... if (obj.doSomething(...)) return app.exec(); // enter to the event loop _only_ if applicableTo copy to clipboard, switch view to plain text mode
Bookmarks