Index: kate/katedocmanager.cpp =================================================================== --- kate/katedocmanager.cpp +++ kate/katedocmanager.cpp @@ -584,7 +584,11 @@ } disconnect(doc, SIGNAL(completed()), this, SLOT(documentOpened())); disconnect(doc, SIGNAL(canceled(QString)), this, SLOT(documentOpened())); - if (doc->openingError()) { + // Checking both, openingError and isEmpty, does not only avoid to show an empty pop dialog + // but also to not set "openSuccess" which cause a false close in closeOrphaned() when the + // file has some other trouble, but exist. + // This works now only due to the patch introduced this comment, but is no sane solution -> FIXME + if (doc->openingError() && !doc->openingErrorMessage().isEmpty()) { m_openingErrors += QLatin1Char('\n') + doc->openingErrorMessage() + QStringLiteral("\n\n"); KateDocumentInfo *info = documentInfo(doc); if (info) {