[Kde-pim] little correction at kdemain for imap4

Guy Maurel guy-kde at maurel.de
Tue May 18 18:14:47 BST 2010


Hi!

On Friday 14 May 2010 23:09:37 Thomas McGuire wrote:
> Hi,
> 
> On Wednesday 12 May 2010 19:35:02 Guy Maurel wrote:
> > Even if kmail (1) is not living much long time!
> > 
> > The first line of kdemain is not usefull and produce an error:
> >   <unknown program name>(1851)/ kdemain: IMAP4::kdemain
> > 
> > I propose to delete the first line.
> 
> kDebug() gets the application name from the component data, which has not been 
> initialized at this time.
> You can remove the debug statement if you want.
the first two lines of code only need to be written in the reverse order and it works such
as one needed it:

--- imap4.cpp   (revision 1108622)
+++ imap4.cpp   (working copy)
@@ -107,9 +107,8 @@
 int
 kdemain (int argc, char **argv)
 {
+  KComponentData instance ("kio_imap4");
   kDebug(7116) <<"IMAP4::kdemain";

-  KComponentData instance ("kio_imap4");

-- 
guy
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list