Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
1d0758d8
Commit
1d0758d8
authored
Nov 19, 2009
by
hjk
Browse files
reset 'busy' cursor if editor could not be created
parent
4461ec2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
1d0758d8
...
...
@@ -1201,10 +1201,12 @@ IEditor *EditorManager::openEditorWithContents(const QString &editorKind,
QApplication
::
setOverrideCursor
(
QCursor
(
Qt
::
WaitCursor
));
IEditor
*
edt
=
createEditor
(
editorKind
);
if
(
!
edt
)
if
(
!
edt
)
{
QApplication
::
restoreOverrideCursor
();
return
0
;
}
if
(
!
edt
||
!
edt
->
createNew
(
contents
))
{
if
(
!
edt
->
createNew
(
contents
))
{
QApplication
::
restoreOverrideCursor
();
delete
edt
;
edt
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment