[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/amarok/src
From:       Joe Rabinoff <bobqwatson () yahoo ! com>
Date:       2006-09-02 17:30:03
Message-ID: 1157218203.770619.30792.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 580126 by rabinoff:


Store moods with music now saves mood files as hidden files (i.e., they begin with a dot).  BUG: 132983



 M  +7 -1      moodbar.cpp  


--- trunk/extragear/multimedia/amarok/src/moodbar.cpp #580125:580126
@@ -1268,7 +1268,13 @@
       return QString::null;
 
     if( withMusic )
-      path += ".mood";
+      {
+	path += ".mood";
+	int slash = path.findRev('/') + 1;
+        QString dir  = path.left(slash);
+        QString file = path.right(path.length() - slash);
+	path = dir + "." + file;
+      }
     else
       {
 	path.replace('/', ',');
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic