Commit ed513689 authored by Daniel Teske's avatar Daniel Teske
Browse files

EditorManager: Don't show a empty error message

Change-Id: I64c4adf6fb8177a928fe6d95507bdfd795e8adbd
Task-number: QTCREATORBUG-14064
Reviewed-by: default avatarEike Ziller <>
parent 6845cb7f
......@@ -589,6 +589,8 @@ IEditor *EditorManagerPrivate::openEditor(EditorView *view, const QString &fileN
QString errorString;
if (!editor->open(&errorString, fn, realFn)) {
if (errorString.isEmpty())
errorString = tr("Could not open \"%1\": Unknown error").arg(realFn);
QMessageBox::critical(ICore::mainWindow(), EditorManager::tr("File Error"), errorString);
delete editor;
return 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