From kde-commits Tue Jul 24 19:10:44 2007 From: Stephen Leaf Date: Tue, 24 Jul 2007 19:10:44 +0000 To: kde-commits Subject: kdereview/autostart Message-Id: <1185304244.186556.29408.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=118530425712455 SVN commit 691976 by smileaf: don't move the file unless it really needs to be moved. M +1 -0 autostart.cpp --- trunk/kdereview/autostart/autostart.cpp #691975:691976 @@ -53,6 +53,7 @@ } bool isDesktop() { return bisDesktop; } void setPath(const QString &path) { + if (path == fileName.directory(KUrl::AppendTrailingSlash)) return; KIO::move(fileName, KUrl( path + '/' + fileName.fileName() )); fileName = KUrl(path + fileName.fileName()); }