Welcome: Do not open main.cpp when project loading was canceled

When choosing an example from the welcome screen and the user
cancels loading the project:
 * Do not switch to edit mode
 * Do not load main.cpp
 * Do not pop up help

Task-number: QTCREATORBUG-2774
Reviewed-by: Daniel Molkentin
This commit is contained in:
Tobias Hunger
2010-10-19 13:07:19 +02:00
parent a6cfa0ca45
commit 0a5094097d
3 changed files with 19 additions and 8 deletions

View File

@@ -119,7 +119,13 @@ public:
virtual void addContextObject(IContext *context) = 0;
virtual void removeContextObject(IContext *context) = 0;
enum OpenFilesFlags { None = 0, SwitchMode = 1, CanContainLineNumbers = 2};
enum OpenFilesFlags {
None = 0,
SwitchMode = 1,
CanContainLineNumbers = 2,
/// Stop loading once the first file fails to load
StopOnLoadFail = 4
};
virtual void openFiles(const QStringList &fileNames, OpenFilesFlags flags = None) = 0;
signals: