On 7/11/2011 9:49 AM, Rusty Lynch wrote:
  {
+    ///////////////////////////////////////////////////////////////////////
+    // If the caller sends a fully qualified path to the desktop file, then
+    // still match the the app against any desktop of the same name already
+    // running, regardless of the full path.  This ensures that a vendors
+    // use of "shadow" desktop directories is transparent, and that the
+    // original and the shadowed desktop are not treated as two different
+    // applications by the task switcher
+    QString dname = name.mid(name.lastIndexOf('/') + 1);
+

this is what basename() is for. just looking for / is technically not correct since filenames can have escaped /'s in them.



_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging

Reply via email to