Fixed bug 2877: kmail segfaults on startup when ~/Mail does not exist

svn path=/trunk/kdenetwork/kmail/; revision=44497
wilder-work
Stefan Taferner 26 years ago
parent 00e36399e4
commit 1513dad8d1
  1. 2
      kmfolder.cpp
  2. 2
      kmfoldermgr.cpp

@ -100,7 +100,7 @@ KMFolder :: ~KMFolder()
/* Well, this is a problem. If I add the above line then kmfolder depends
* on kmaccount and is then not that portable. Hmm.
*/
undoStack->folderDestroyed(this);
if (undoStack) undoStack->folderDestroyed(this);
}

@ -44,7 +44,7 @@ KMFolderMgr::KMFolderMgr(const QString& aBasePath):
//-----------------------------------------------------------------------------
KMFolderMgr::~KMFolderMgr()
{
undoStack->clear(); // Speed things up a bit.
if (undoStack) undoStack->clear(); // Speed things up a bit.
mBasePath = QString::null;;
}

Loading…
Cancel
Save