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/createlinkoperation.cpp | |
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/createlinkoperation.cpp')
-rw-r--r-- | src/libs/installer/createlinkoperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/createlinkoperation.cpp b/src/libs/installer/createlinkoperation.cpp index b844e179b..fefe36cd6 100644 --- a/src/libs/installer/createlinkoperation.cpp +++ b/src/libs/installer/createlinkoperation.cpp @@ -65,7 +65,7 @@ bool CreateLinkOperation::performOperation() const QString& targetPath = args.at(1); Link link = Link::create(linkPath, targetPath); - if (!link.isValid()) { + if (!link.exists()) { setError(UserDefinedError); setErrorString(QObject::tr("Could not create link from %1 to %2.").arg(linkPath, targetPath)); return false; |