forked from qt-creator/qt-creator
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user