[Marble-bugs] [marble] [Bug 355001] New: [Regression] marble-kde cannot open local files

Stefan Bauer via KDE Bugzilla bugzilla_noreply at kde.org
Sat Nov 7 18:05:49 UTC 2015


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

            Bug ID: 355001
           Summary: [Regression] marble-kde cannot open local files
           Product: marble
           Version: 1.12 (KDE Applications 15.08)
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: stefan-a-bauer at gmx.net

Steps to reproduce:
- Open the marble KDE application
- Select File -> Open
- Select a GPX file from the local file system

Expected result: Marble opens the file
Current result: Message box: Sorry, unable to open ''. The file is not
accessible.

Analysis
The problem seems to be in the method MarblePart::openFile(). It opens a
QFileDialog to get the path of the file to open as QString. Then it calls
MarblePart::openUrl( const QUrl &url ) with this QString. As this method takes
a QUrl, not a QString, the QUrl(const QString&) ctor is called. The resulting
QUrl is broken as it does not contain the protocol part.

Looks like this got screwed up in cf1158852b8905d2c22d68c139aa4f0935207844
(Port to KDE Frameworks 5). There the interface of MarblePart::openUrl() was
changed to take a QUrl instead of a KUrl. KUrl had special treatments for paths
which QUrl does not have.

I'm currently working on/testing a fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list