Commit 25af3ab6 authored by Kevin Krammer's avatar Kevin Krammer
Browse files

- Pass the loca path of the downloaded file instead of its file: URL since

- synchronize after loading not after initiating loading
CCBUG: 182162


svn path=/trunk/KDE/kdepim/akonadi/; revision=918726
parent c6c8f9f6
......@@ -102,6 +102,7 @@ class SingleFileResource : public SingleFileResourceBase
KDirWatch::self()->addFile( mCurrentUrl.path() );
emit status( Idle, i18nc( "@info:status", "Ready" ) );
synchronize();
}
else
{
......
......@@ -88,7 +88,6 @@ void SingleFileResourceBase::reloadFile()
writeFile();
readFile();
synchronize();
}
void SingleFileResourceBase::handleProgress( KJob *, unsigned long pct )
......@@ -127,13 +126,14 @@ void SingleFileResourceBase::slotDownloadJobResult( KJob *job )
if ( job->error() && job->error() != KIO::ERR_DOES_NOT_EXIST ) {
emit status( Broken, i18n( "Could not load file '%1'.", mCurrentUrl.prettyUrl() ) );
} else {
readFromFile( KUrl( cacheFile() ).url() );
readFromFile( KUrl( cacheFile() ).toLocalFile() );
}
mDownloadJob = 0;
KGlobal::deref();
emit status( Idle, i18nc( "@info:status", "Ready" ) );
synchronize();
}
void SingleFileResourceBase::slotUploadJobResult( KJob *job )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment