[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    [patch] initDoc in koffice/example usage
From:       Brad Hards <bradh () frogmouth ! net>
Date:       2004-09-17 12:27:47
Message-ID: 200409172228.00665.bradh () frogmouth ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Is this patch correct? 

retrieving revision 1.19
diff -u -4 -p -r1.19 example_part.cc
--- example_part.cc     12 Sep 2004 11:53:55 -0000      1.19
+++ example_part.cc     17 Sep 2004 12:25:52 -0000
@@ -34,9 +34,9 @@ bool ExamplePart::initDoc(InitDocFlags f
     // If nothing is loaded, do initialize here
     // Most KOffice applications use the template dialog here, with code 
like:
 /*
     KoTemplateChooseDia::DialogType dlgtype;
-    if (initDocFlags() != KoDocument::InitDocFileNew )
+    if (flags != KoDocument::InitDocFileNew )
         dlgtype = KoTemplateChooseDia::Everything;
     else
         dlgtype = KoTemplateChooseDia::OnlyTemplates;

Brad

[Attachment #5 (application/pgp-signature)]

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic