Summary: | 2.0 beta4 can't use network shares | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Jonas Norlander <jonorland> |
Component: | Database-Media | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, mail4ilia |
Priority: | NOR | ||
Version: | 2.0.0 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.0.0 | |
Sentry Crash Report: | |||
Attachments: | Debug output |
Description
Jonas Norlander
2011-04-24 23:50:35 UTC
Git commit 7adb7184f9f9c8c82eeb0d5b094ac8fb91018d7c by Matthias Welwarsky. Committed on 25/04/2011 at 14:21. Pushed by welwarsky into branch 'master'. CollectionManager: fix for collections on network shares QUrl default constructor expects an unencoded URL. If an encoded URL is used, the '%' is again encoded and the resulting URL is unusable. AlbumRootLocation::identifier seems to be already encoded, therefore use the proper QUrl::fromEncoded() method. Without this fix, existing collections on network shares are always marked unavailable and new collections can not be generated. Signed-off-by: Matthias Welwarsky <matze@welwarsky.de> M +1 -1 libs/database/collectionmanager.cpp http://commits.kde.org/digikam/7adb7184f9f9c8c82eeb0d5b094ac8fb91018d7c diff --git a/libs/database/collectionmanager.cpp b/libs/database/collectionmanager.cpp index e2a4bbe..40e3e67 100644 --- a/libs/database/collectionmanager.cpp +++ b/libs/database/collectionmanager.cpp @@ -450,7 +450,7 @@ QString CollectionManagerPrivate::pathFromIdentifier(const AlbumRootLocation* lo QStringList CollectionManagerPrivate::networkShareMountPathsFromIdentifier(const AlbumRootLocation* location) { // using a QUrl because KUrl cannot handle duplicate query items - QUrl url(location->identifier); + QUrl url = QUrl::fromEncoded(location->identifier.toLocal8Bit()); if (url.scheme() != "networkshareid") { Jonas, Mattias has patched git master source code to trying to fix this problem. Please checkout source code and report. Gilles Caulier I try to don't mix my system with self compiled programs. If the fix is in beta 5 I will upgrade it from Philip's PPA. Works fine in 2.0 beta 5 from Philips PPA for me. Kubunty 11.04 |