From f9a37cb9585e8a28843f8b234497a22da6f2bcff Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Wed, 30 May 2012 18:29:54 +0200 Subject: QFileInfo(m_path).readLink(); can't read junctions - in older code there was a try to resolve junctions like symbolic links, but this broke many other code - we copied the read windows symlink code from the private qt file and made small adjustmenst to be able to call it directly in targetPath() method - and changed the isValid behaviour, because we want to create links to locations which are created later - and it is creating the path to the link on every OS Change-Id: Id11839bbf2ecfde410982833d10f96d36fe1cab7 Reviewed-by: Alexander Lenhardt --- src/libs/installer/link.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libs/installer/link.h') diff --git a/src/libs/installer/link.h b/src/libs/installer/link.h index bb843b62f..f54bfecae 100644 --- a/src/libs/installer/link.h +++ b/src/libs/installer/link.h @@ -39,9 +39,10 @@ class Link { public: Link(const QString &path); - static Link create(const QString &linkPath, const QString &targetPath); + static Link create(const QString &link, const QString &targetPath); QString targetPath() const; bool targetExists(); + bool exists(); bool isValid(); bool remove(); -- cgit v1.2.3