]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Apply sugestions
authorMéven Car <meven29@gmail.com>
Sun, 27 Dec 2020 13:14:06 +0000 (14:14 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 27 Dec 2020 17:18:40 +0000 (17:18 +0000)
src/views/versioncontrol/versioncontrolobserver.cpp
src/views/versioncontrol/versioncontrolobserver.h

index ad1d53a247d77064be067890ccc9072ea7fad222..709d98e4268e93f3a133cd40e5158c8e5e686bd7 100644 (file)
@@ -155,7 +155,7 @@ void VersionControlObserver::verifyDirectory()
     }
 
     if (m_plugin != nullptr) {
     }
 
     if (m_plugin != nullptr) {
-        if (!rootItem.url().path().startsWith(m_localeRepoRoot) || !QFile::exists(m_localeRepoRoot + '/' + m_plugin->fileName())) {
+        if (!rootItem.url().path().startsWith(m_localRepoRoot) || !QFile::exists(m_localRepoRoot + '/' + m_plugin->fileName())) {
             m_plugin = nullptr;
 
             // The directory is not versioned. Reset the verification timer to a higher
             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)) {
         // first naively check if we are at working copy root
         const QString fileName = directory.path() + '/' + plugin->fileName();
         if (QFile::exists(fileName)) {
-            m_localeRepoRoot = directory.path();
+            m_localRepoRoot = directory.path();
             return plugin;
         }
             return plugin;
         }
-        auto wcRoot = plugin->localRepositoryRoot(directory.path());
-        if (!wcRoot.isEmpty()) {
-            m_localeRepoRoot = wcRoot;
+        auto root = plugin->localRepositoryRoot(directory.path());
+        if (!root.isEmpty()) {
+            m_localRepoRoot = root;
             return plugin;
         }
     }
             return plugin;
         }
     }
index 6760401f0eac58e167ba3d8f2bc4bb8f56a1f6f1..d9cc90cc6d603b987b841653e0a83f56e72d7d8b 100644 (file)
@@ -137,7 +137,7 @@ private:
     bool m_pendingItemStatesUpdate;
     bool m_silentUpdate; // if true, no messages will be send during the update
                          // of version states
     bool m_pendingItemStatesUpdate;
     bool m_silentUpdate; // if true, no messages will be send during the update
                          // of version states
-    QString m_localeRepoRoot;
+    QString m_localRepoRoot;
 
     DolphinView* m_view;
     KFileItemModel* m_model;
 
     DolphinView* m_view;
     KFileItemModel* m_model;