deller at gmx.de
Sat Jul 5 11:19:26 UTC 2003
On Saturday 05 July 2003 19:50, Jonathan Riddell wrote:
> On Fri, Jul 04, 2003 at 07:58:54PM +0200, Helge Deller wrote:
> > CVS commit by deller:
> > roaming user fixes
> > M +1 -1 main.cpp 1.9
> > M +17 -5 uml.cpp 1.44
> This seems to have caused a problem.
> config -> writePathEntry( "lastFile", doc->URL().prettyURL() );
> saves an entry to something like
> which then expands to
> A similar thing happens when using, for example, an HTTP URL.
This should only happen when you compile against KDE 3.1.3 (in 3.1 BRANCH in CVS) and
run it against "old" KDE 3.1.2 libraries which have a bug in writePathEntry().
The full code in uml.cpp reads:
config -> writePathEntry( "lastFile", doc -> URL().prettyURL() );
config -> writeEntry( "lastFile", doc -> URL().prettyURL() );
this means, that writePathEntry() will only be used, if you compile
for KDE 3.1.3 or above. Thus, you shouldn't get those problems.
Do you maybe have some old kde libraries around in your system ?
> I'm not sure what the best way to fix this is.
> I'm also curious about the use of
> #if KDE_IS_VERSION(3,1,3)
> What about later or earler versions of KDE? writePathEntry() doesn't
> seem like it should cause problems with different KDE versions.
#if KDE_IS_VERSION(3,1,3) automatically expands to something like
"if KDE_VERSION >= 3.1.3", so all versions above 3.1.3 are included.
Please read in kdeversion.h.
More information about the umbrello-devel