kjob.h docs error

Martin Koller kollix at aon.at
Thu May 14 12:11:29 BST 2009


Hi,

am I correct that the doc has a bug here
(virtual QString errorString() const;) ?

Index: kdecore/jobs/kjob.h
===================================================================
--- kdecore/jobs/kjob.h (revision 967065)
+++ kdecore/jobs/kjob.h (working copy)
@@ -262,7 +262,7 @@
      * \code
      *   i18n( "Could not read\n%1" , errorText() );
      * \endcode
-     * Do not call it if error() is not 0.
+     * Only call if error is not 0.
      *
      * @return the error message and if there is no error, a message
      *         telling the user that the app is broken, so check with


Beside that: how can a job fail but have NO error text ?
In my case KIO::copy() to a remote url "sftp://machine/path"
calls my slotResult(KJob *theJob) and theJob->error() gives 1.
In this case I also call  theJob->uiDelegate()->showErrorMessage();
but I see no dialog (I'm running my KDE4 (4.2.3) ported kbackup program
inside a KDE3 session if that matters).

-- 
Best regards/Schöne Grüße

Martin    ()  ascii ribbon campaign - against html mail 
          /\                        - against microsoft attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090514/57f94041/attachment.sig>


More information about the kde-core-devel mailing list