forward port (part I forgot with the previous commit)

by burghard:

Make sure no empty imap path is set/saved and issue a warning in this case. 
Please check your logfiles if you get this warning.


svn path=/trunk/KDE/kdepim/; revision=459041
wilder-work
Allen Winter 21 years ago
parent 1339745e8f
commit 63ec7b5828
  1. 10
      kmfolderimap.cpp
  2. 2
      kmfolderimap.h

@ -2263,4 +2263,14 @@ void KMFolderImap::saveMsgMetaData( KMMessage* msg, ulong uid )
mUidMetaDataMap.replace( uid, new KMMsgMetaData(msg->status(), serNum) );
}
//-----------------------------------------------------------------------------
void KMFolderImap::setImapPath( const QString& path )
{
if ( path.isEmpty() ) {
kdWarning(5006) << k_funcinfo << "ignoring empty path";
} else {
mImapPath = path;
}
}
#include "kmfolderimap.moc"

@ -106,7 +106,7 @@ public:
virtual KMMessage* getMsg(int idx);
/** The path to the imap folder on the server */
void setImapPath(const QString &path) { mImapPath = path; }
void setImapPath( const QString &path );
QString imapPath() { return mImapPath; }
/** The highest UID in the folder */

Loading…
Cancel
Save