┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/versioncontrol/versioncontrolobserver.cpp
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2020-12-08 23:09:52 +0100
committerElvis Angelaccio <[email protected]>2020-12-27 17:18:40 +0000
commitf6a465c9116eee978094b1928de5b4cb2cc59eae (patch)
tree6810d0f71cbf0a15996bead281afdf8db6f94b15 /src/views/versioncontrol/versioncontrolobserver.cpp
parentc1739d5c4d55401a03462467ed446763924be844 (diff)
Review feedback
Diffstat (limited to 'src/views/versioncontrol/versioncontrolobserver.cpp')
-rw-r--r--src/views/versioncontrol/versioncontrolobserver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/views/versioncontrol/versioncontrolobserver.cpp b/src/views/versioncontrol/versioncontrolobserver.cpp
index 5f7c34194..ad1d53a24 100644
--- a/src/views/versioncontrol/versioncontrolobserver.cpp
+++ b/src/views/versioncontrol/versioncontrolobserver.cpp
@@ -155,7 +155,7 @@ void VersionControlObserver::verifyDirectory()
}
if (m_plugin != nullptr) {
- if (!rootItem.url().path().startsWith(m_wcRoot) || !QFile::exists(m_wcRoot + '/' + m_plugin->fileName())) {
+ if (!rootItem.url().path().startsWith(m_localeRepoRoot) || !QFile::exists(m_localeRepoRoot + '/' + m_plugin->fileName())) {
m_plugin = nullptr;
// The directory is not versioned. Reset the verification timer to a higher
@@ -310,12 +310,12 @@ KVersionControlPlugin* VersionControlObserver::searchPlugin(const QUrl& director
// first naively check if we are at working copy root
const QString fileName = directory.path() + '/' + plugin->fileName();
if (QFile::exists(fileName)) {
- m_wcRoot = directory.path();
+ m_localeRepoRoot = directory.path();
return plugin;
}
auto wcRoot = plugin->localRepositoryRoot(directory.path());
if (!wcRoot.isEmpty()) {
- m_wcRoot = wcRoot;
+ m_localeRepoRoot = wcRoot;
return plugin;
}
}