Bug 161694

Summary: Restore to palm does not work
Product: [Applications] kpilot Reporter: Karolina Lindqvist <karolina.lindqvist>
Component: GeneralAssignee: groot
Status: RESOLVED FIXED    
Severity: normal CC: finex
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Karolina Lindqvist 2008-05-06 09:46:20 UTC
Version:           4.9.4-3510 (elsewhere) (using 3.5.9, Arch Linux i686)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.25-CUSTOM

kpilot does not do a complete restore from backup. and gives a lot of errors type "cannot read file" in the log window.
The fix is simple and obvious. Wrong datatype used for a variable:

--- ./kpilot/lib/pilotLocalDatabase.cc.~1~      2008-05-01 07:25:54.000000000 +0200
+++ ./kpilot/lib/pilotLocalDatabase.cc  2008-05-06 07:34:12.000000000 +0200
@@ -746,7 +746,7 @@
                return false;
        }

-       const char * fileName = QFile::encodeName( path );
+       QCString fileName = QFile::encodeName( path );
        f = pi_file_open( fileName );
        if (!f)
        {
Comment 1 Bertjan Broeksema 2008-05-06 21:02:07 UTC
Fixed in trunk and in branches/3.5. But i don't seem to have rights to close this bug. Thanks for the report/fix.
Comment 2 FiNeX 2008-05-09 09:28:47 UTC
Closed.