Bug 70657

Summary: can't add songs with '?' in name to playlists
Product: [Frameworks and Libraries] kdelibs Reporter: John Firebaugh <jfirebaugh>
Component: generalAssignee: Scott Wheeler <wheeler>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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;
 }