Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2c800e8d authored by Sebastian Sauer's avatar Sebastian Sauer

don't crash.


svn path=/trunk/koffice/; revision=658779
parent aea238ab
......@@ -641,8 +641,7 @@ bool KoMainWindow::openDocumentInternal( const KUrl & url, KoDocument *newdoc )
bool openRet = (!isImporting ()) ? newdoc->openURL(url) : newdoc->import(url);
if(!openRet)
{
newdoc->removeShell(this);
delete newdoc;
//newdoc->removeShell(this); delete newdoc; // already done by slotLoadCanceled()
return false;
}
updateReloadFileAction(newdoc);
......
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