Bug 70657 - can't add songs with '?' in name to playlists
Summary: can't add songs with '?' in name to playlists
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Scott Wheeler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-17 09:34 UTC by John Firebaugh
Modified: 2004-01-11 19:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Firebaugh 2003-12-17 09:34:03 UTC
Version:           1.96 (2.0 Beta 2) (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.3.2 (Debian)
OS:          Linux (i686) release 2.4.21

Songs with a question mark character in the file name or path cannot be added to playlists.
Comment 1 Scott Wheeler 2004-01-11 16:43:20 UTC
This is actually a bug in KURLDrag::decode() -- I'm looking into it now and will hopefully have a patch shortly.
Comment 2 Scott Wheeler 2004-01-11 19:46:39 UTC
Subject: kdelibs/kdecore

CVS commit by wheeler: 

Properly set the URI type when calling setPath or setEncodedPath on an
otherwise uninitialized URL.

Reviewed by Waldo.

CCMAIL:70657-done@bugs.kde.org


  M +5 -0      kurl.cpp   1.263


--- kdelibs/kdecore/kurl.cpp  #1.262:1.263
@@ -1283,4 +1283,7 @@ void KURL::setEncodedPath( const QString
   if (m_strProtocol == fileProt)
      m_strPath_encoded = QString::null;
+
+  if ( m_iUriMode == Auto )
+    m_iUriMode = URL;
 }
 
@@ -1911,4 +1914,6 @@ void KURL::setPath( const QString & path
   m_strPath = path;
   m_strPath_encoded = QString::null;
+  if ( m_iUriMode == Auto )
+    m_iUriMode = URL;
 }