[Digikam-devel] [Bug 125926] digikam: directories with a '#' in their name are not properly detected when created outside digikam or ...

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Apr 30 18:10:36 BST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=125926         
marcel.wiesweg gmx de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From marcel.wiesweg gmx de  2006-04-30 19:10 -------
SVN commit 535879 by mwiesweg:

digikam stable branch:
Properly create URL from filename.
Backport commit 535877.

BUG: 125926


 M  +6 -3      albummanager.cpp  


--- branches/stable/extragear/graphics/digikam/digikam/albummanager.cpp #535878:535879
 @ -395,11 +395,14  @
         if (info.url.isEmpty() || info.url == "/")
             continue;
 
+        // Despite its name info.url is a QString.
+        // setPath takes care for escaping characters that are valid for files but not for URLs ('#')
+        KURL u;
+        u.setPath(info.url);
+        QString name = u.fileName();
         // Get its parent
-        KURL u = info.url;
-        QString name = u.fileName();
         QString purl = u.upURL().path(-1);
-        
+
         PAlbum* parent = d->pAlbumDict.find(purl);
         if (!parent)
         {



More information about the Digikam-devel mailing list