diff options
author | Andy Shaw <andy.shaw@qt.io> | 2017-10-02 13:52:21 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2017-10-27 06:01:56 +0000 |
commit | d40c73e51cac7332bca5af37d460b1f0a37b12a1 (patch) | |
tree | c88181047bdb9d89621a62fc62ee056692db6c79 | |
parent | 0a11320bd0007e9a83b9857af9b97015acfe4b1c (diff) |
Use QDir::rmdir and not rmpath as that will remove more than it should
Change-Id: Ie38cc0f19817025c31124256ba968ecded61aef3
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
-rw-r--r-- | src/libs/installer/copydirectoryoperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/copydirectoryoperation.cpp b/src/libs/installer/copydirectoryoperation.cpp index c3a65d7f8..e83af07e1 100644 --- a/src/libs/installer/copydirectoryoperation.cpp +++ b/src/libs/installer/copydirectoryoperation.cpp @@ -157,7 +157,7 @@ bool CopyDirectoryOperation::undoOperation() setErrorString(tr("Cannot remove file \"%1\".").arg(QDir::toNativeSeparators(file))); return false; } - dir.rmpath(QFileInfo(file).absolutePath()); + dir.rmdir(QFileInfo(file).absolutePath()); emit outputTextChanged(file); } |