diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2012-05-30 18:29:54 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2012-05-30 18:43:01 +0200 |
commit | f9a37cb9585e8a28843f8b234497a22da6f2bcff (patch) | |
tree | cdaaf6e4352004b78bcdb82217119794c3024bec /src/libs/installer/link.h | |
parent | cedcc6eb4bc7c57c7cb5da06de121021faa82ba9 (diff) |
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 <alexander.lenhardt@nokia.com>
Diffstat (limited to 'src/libs/installer/link.h')
-rw-r--r-- | src/libs/installer/link.h | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |