KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
103973
:
No warning after saving broken file when not e...
P
roduct
:
knode
Co
m
ponent
:
general
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2005-04-15 18:20
Last Changed:
2005-05-17 13:00:11
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.
Comment
#1
Volker Krause 2005-05-17 12:52:22
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 ); } }
Comment
#2
Volker Krause 2005-05-17 13:00:11
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 ); } }
P
latform
:
unspecified
O
S
:
Linux
K
eywords
:
People
Reporter
:
Assigned To
:
KNode Developers
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In