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

List:       kde-commits
Subject:    branches/KDE/3.5/kdenetwork/kopete/kopete/chatwindow
From:       Laurent Montel <montel () kde ! org>
Date:       2006-11-03 13:09:15
Message-ID: 1162559355.918059.4995.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 601500 by mlaurent:

Now we can remove style


 M  +4 -2      kopetechatwindowstylemanager.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp #601499:601500
@@ -283,7 +283,9 @@
 bool ChatWindowStyleManager::removeStyle(const QString &stylePath)
 {
 	// Find for the current style in avaiableStyles map.
-	StyleList::Iterator foundStyle = d->availableStyles.find(stylePath);
+        KURL urlStyle(stylePath);
+	QString styleName=urlStyle.fileName();
+	StyleList::Iterator foundStyle = d->availableStyles.find(styleName);
 	// QMap iterator return end() if it found no item.
 	if(foundStyle != d->availableStyles.end())
 	{
@@ -298,7 +300,7 @@
 		}
 	
 		// Do the actual deletion of the directory style.
-		return KIO::NetAccess::del( KURL(stylePath), 0 );
+		return KIO::NetAccess::del( urlStyle, 0 );
 	}
 	else
 	{
[prev in list] [next in list] [prev in thread] [next in thread] 

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