From kde-commits Sat Apr 28 14:05:33 2007 From: Sebastian Sauer Date: Sat, 28 Apr 2007 14:05:33 +0000 To: kde-commits Subject: koffice/libs/kofficecore Message-Id: <1177769133.766439.18334.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117776914400606 SVN commit 658779 by sebsauer: don't crash. M +1 -2 KoMainWindow.cpp --- trunk/koffice/libs/kofficecore/KoMainWindow.cpp #658778:658779 @@ -641,8 +641,7 @@ 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);