[Digikam-devel] [Bug 136903] if partition gets full during camera/card copy there is no warning and empty files are created.

Marcel Wiesweg marcel.wiesweg at gmx.de
Wed Jan 3 16:58:03 GMT 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=136903         
marcel.wiesweg gmx de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From marcel.wiesweg gmx de  2007-01-03 17:58 -------
SVN commit 619537 by mwiesweg:

When partition is full, QIODevice::writeBlock will not return -1 as error,
but 0 for zero bytes written.

BUG: 136903


 M  +1 -1      umscamera.cpp  


--- trunk/extragear/graphics/digikam/utilities/cameragui/umscamera.cpp #619536:619537
 @ -239,7 +239,7  @
     Q_LONG len;
     while ((len = sFile.readBlock(buffer, MAX_IPC_SIZE)) != 0 && !m_cancel)
     {
-        if (len == -1 || dFile.writeBlock(buffer, (Q_ULONG)len) == -1)
+        if (len == -1 || dFile.writeBlock(buffer, (Q_ULONG)len) != len)
         {
             sFile.close();
             dFile.close();



More information about the Digikam-devel mailing list