diff options
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r-- | src/plugins/git/gitclient.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 97a222b66aa..976b8aefab9 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -2805,9 +2805,9 @@ GitClient::RevertResult GitClient::revertI(QStringList files, QStringList stagedFiles = allStagedFiles; QStringList unstagedFiles = allUnstagedFiles; if (!isDirectory) { - const QSet<QString> filesSet = files.toSet(); - stagedFiles = allStagedFiles.toSet().intersect(filesSet).toList(); - unstagedFiles = allUnstagedFiles.toSet().intersect(filesSet).toList(); + const QSet<QString> filesSet = Utils::toSet(files); + stagedFiles = Utils::toList(Utils::toSet(allStagedFiles).intersect(filesSet)); + unstagedFiles = Utils::toList(Utils::toSet(allUnstagedFiles).intersect(filesSet)); } if ((!revertStaging || stagedFiles.empty()) && unstagedFiles.empty()) return RevertUnchanged; |