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

List:       kde-panel-devel
Subject:    [PATCH] Bug 203782 missing the last item when you drag more than
From:       <wppan () redflag-linux ! com>
Date:       2009-08-14 9:13:07
Message-ID: 4A852AA3.6070402 () redflag-linux ! com
[Download RAW message or body]

Hi, all

when you drag more than one desktop files from dolphin into quicklaunch,
the last desktop will not be inserted into quicklaunch.

And the author comments "if there are more than one the last is junk".
I don't understand it, so I delete it.

Regards
-- 
ÅËÎÀƽ(Peter Pan)
Red Flag Software Co., Ltd

["kdebase-quicklaunch-delete-last.patch" (text/x-patch)]

Index: quicklaunchApplet.cpp
===================================================================
--- quicklaunchApplet.cpp	(revision 1010790)
+++ quicklaunchApplet.cpp	(working copy)
@@ -664,11 +664,6 @@
         return false;
     }
 
-    //if there are more than one the last is junk
-    if (urls.count() > 1) {
-        urls.removeLast();
-    }
-
     foreach (const KUrl &url, urls) {
         if (KDesktopFile::isDesktopFile(url.toLocalFile())) {
             addProgram(pos, url.toLocalFile(), true);


_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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