Version: 0.9.0 (using KDE 3.4.0, compiled sources) Compiler: gcc version 3.3.5 (PLD Linux) OS: Linux (i686) release 2.6.11.5 If I save image from news posting and there is not enough space on disk, borken (truncated) file is saved and no warning is given.
SVN commit 414924 by vkrause: Inform the user if saving an attachment or an article failed during writing (eg. because of lack of disk space). CCBUG: 103973 M +4 -2 trunk/KDE/kdepim/knode/knarticlemanager.cpp --- trunk/KDE/kdepim/knode/knarticlemanager.cpp #414923:414924 @@ -86,7 +86,8 @@ if (file) { QByteArray data=c->decodedContent(); - file->writeBlock(data.data(), data.size()); + if (file->writeBlock(data.data(), data.size()) == -1 ) + KNHelper::displayExternalFileError( parent ); } } @@ -109,7 +110,8 @@ if (file) { QCString tmp=a->encodedContent(false); - file->writeBlock(tmp.data(), tmp.size()); + if ( file->writeBlock(tmp.data(), tmp.size()) == -1 ) + KNHelper::displayExternalFileError( parent ); } }
SVN commit 414926 by vkrause: Backport from trunk: Inform the user if saving an attachment or an article failed during writing (eg. because of lack of disk space). BUG: 103973 M +4 -2 branches/KDE/3.4/kdepim/knode/knarticlemanager.cpp --- branches/KDE/3.4/kdepim/knode/knarticlemanager.cpp #414925:414926 @@ -84,7 +84,8 @@ if (file) { QByteArray data=c->decodedContent(); - file->writeBlock(data.data(), data.size()); + if (file->writeBlock(data.data(), data.size()) == -1 ) + KNHelper::displayExternalFileError( parent ); } } @@ -107,7 +108,8 @@ if (file) { QCString tmp=a->encodedContent(false); - file->writeBlock(tmp.data(), tmp.size()); + if ( file->writeBlock(tmp.data(), tmp.size()) == -1 ) + KNHelper::displayExternalFileError( parent ); } }
You need to log in before you can comment on or make changes to this bug.