On 07/11/2011 09:52 AM, Arjan van de Ven wrote:
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.
basename itself isn't appropriate since it is operating on the wrong datatype, but i have a new version that uses QFileInfo's baseName info
new sr on the way _______________________________________________ MeeGo-packaging mailing list [email protected] http://lists.meego.com/listinfo/meego-packaging
