Bug 161694 - Restore to palm does not work
Summary: Restore to palm does not work
Status: RESOLVED FIXED
Alias: None
Product: kpilot
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: groot
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-06 09:46 UTC by Karolina Lindqvist
Modified: 2008-05-09 09:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.