https://bugs.kde.org/show_bug.cgi?id=349610

Christof Hanke <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christof.hanke@induhviduals
                   |                            |.de

--- Comment #5 from Christof Hanke <[email protected]> ---
I can comfirm this.
The problem is in libkeduvocdocument.

The saveAS()-method of the KEduVocDocument-class creates an QUrl from another
url, but it should do it from the QString Path of the local file.
Otherwise it tries to store files like "file:///blah.bla" on the local
filesystem.
This usually fails, since the directory "file:" is not existant in the CWD.


The patch which works for me is :

libkeduvocdocument/libkeduvocdocument-15.08.3/keduvocdocument> diff -u
keduvocdocument.cpp.orig keduvocdocument.cpp
--- keduvocdocument.cpp.orig    2015-03-19 16:35:18.000000000 +0100
+++ keduvocdocument.cpp 2015-12-01 13:45:16.618816540 +0100
@@ -317,7 +317,7 @@
         return FileIsReadOnly;
     }

-    QUrl tmp( url );
+    QUrl tmp( url.toLocalFile() );

     if ( ft == Automatic ) {
         if ( tmp.path().right( strlen( "." KVTML_EXT ) ) == "." KVTML_EXT )



DISCLAIMER:
I have _no_ experience in debugging KDE-apps. I am just interested in parley.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to