Don't get stuck when receiving quota info for dimap.

A emitResult() was missing.

BUG: 154960

svn path=/trunk/KDE/kdepim/; revision=778618
wilder-work
Thomas McGuire 18 years ago
parent f6c6d137d8
commit 2da8ea91e7
  1. 13
      quotajobs.cpp
  2. 11
      quotajobs.h

@ -50,16 +50,12 @@ QuotaJobs::GetQuotarootJob::GetQuotarootJob( const KUrl& url,
const QByteArray &packedArgs)
: KIO::SpecialJob( url, packedArgs)
{
connect( this, SIGNAL(infoMessage(KJob*,const QString&)),
SLOT(slotInfoMessage(KJob*,const QString&)) );
connect( this, SIGNAL(infoMessage(KJob*,const QString&,const QString&)),
SLOT(slotInfoMessage(KJob*,const QString&,const QString&)) );
}
//The #warning here is there to replace a compiler warning in the header file,
//see the using directive there.
#ifdef __GNUC__
#warning Fix me!
#endif
void QuotaJobs::GetQuotarootJob::slotInfoMessage( KJob*, const QString& str )
void QuotaJobs::GetQuotarootJob::slotInfoMessage( KJob*, const QString& str,
const QString& )
{
// Parse the result
QStringList results = str.split("\r");
@ -129,6 +125,7 @@ void QuotaJobs::GetStorageQuotaJob::slotQuotarootResult( const QStringList& root
}
if ( mStorageQuotaInfo.isValid() )
emit storageQuotaResult( mStorageQuotaInfo );
emitResult();
}
void QuotaJobs::GetStorageQuotaJob::slotQuotaInfoReceived( const QuotaInfoList& infos )

@ -160,16 +160,7 @@ signals:
void quotaInfoReceived( const QuotaInfoList& info );
protected slots:
void slotInfoMessage( KJob*, const QString& );
protected:
// FIXME: this using statement is incorrect, I just want to get rid of the
// compiler warnings generated by this. The warnings are right, this
// is probably the cause of bug 154960.
// Instead, there now is a #warning in the cpp file.
using KIO::SpecialJob::slotInfoMessage;
void slotInfoMessage( KJob*, const QString&, const QString& );
};
/// for getStorageQuota()

Loading…
Cancel
Save