KIMProxy is a singleton, with a private destructor. This means you can't delete it.

While being at it, removed the member var, not needed anymore.

svn path=/trunk/kdepim/; revision=321103
wilder-work
David Faure 22 years ago
parent bb831f00c5
commit c5565deb35
  1. 6
      kmkernel.cpp
  2. 2
      kmkernel.h

@ -155,8 +155,6 @@ KMKernel::KMKernel (QObject *parent, const char *name) :
}
mMailService = new MailServiceImpl();
mKIMProxy = KIMProxy::instance( kapp->dcopClient() );
connectDCOPSignal( 0, 0, "kmailSelectFolder(QString)",
"selectFolder(QString)", false );
}
@ -176,8 +174,6 @@ KMKernel::~KMKernel ()
mICalIface = 0;
delete mMailService;
mMailService = 0;
delete mKIMProxy;
mKIMProxy = 0;
GlobalSettings::writeConfig();
mySelf = 0;
@ -1690,7 +1686,7 @@ KMFolder* KMKernel::findFolderById( const QString& idString )
::KIMProxy* KMKernel::imProxy()
{
return mKIMProxy;
return KIMProxy::instance( kapp->dcopClient() );
}
void KMKernel::enableMailCheck()

@ -362,8 +362,6 @@ private:
// need to be updated (e.g. in the Summary in Kontact)
int mTimeOfLastMessageCountChange;
// KIMProxy provides access to up to date instant messaging presence data
::KIMProxy *mKIMProxy;
// true if the context menu of KMFolderTree or KMHeaders is shown
// this is necessary to know in order to prevent a dead lock between the
// context menus and the pinentry program

Loading…
Cancel
Save