Commit 1d0758d8 authored by hjk's avatar hjk

reset 'busy' cursor if editor could not be created

parent 4461ec2e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment