diff --git a/src/profile/ProfileManager.cpp b/src/profile/ProfileManager.cpp index 956febd4..935ca86a 100644 --- a/src/profile/ProfileManager.cpp +++ b/src/profile/ProfileManager.cpp @@ -237,7 +237,6 @@ void ProfileManager::sortProfiles() QList ProfileManager::allProfiles() { - loadAllProfiles(); sortProfiles(); return loadedProfiles(); } @@ -350,7 +349,6 @@ void ProfileManager::changeProfile(Profile::Ptr profile, QHashpath() != origPath) { // this is needed to include the old profile too - loadAllProfiles(); const QList availableProfiles = ProfileManager::instance()->allProfiles(); for (const Profile::Ptr &oldProfile : availableProfiles) { if (oldProfile->path() == origPath) { diff --git a/src/profile/ProfileManager.h b/src/profile/ProfileManager.h index 8b231982..e990157c 100644 --- a/src/profile/ProfileManager.h +++ b/src/profile/ProfileManager.h @@ -67,13 +67,6 @@ public: */ QList loadedProfiles() const; - /** - * Loads all available profiles. This involves reading each - * profile configuration file from disk and parsing it. - * Therefore it should only be done when necessary. - */ - void loadAllProfiles(const QString &defaultProfileFileName = {}); - /** * Loads a profile from the specified path and registers * it with the ProfileManager. @@ -197,6 +190,13 @@ private Q_SLOTS: private: Q_DISABLE_COPY(ProfileManager) + /** + * Loads all available profiles. This involves reading each + * profile configuration file from disk and parsing it. + * Therefore it should only be done when necessary. + */ + void loadAllProfiles(const QString &defaultProfileFileName = {}); + // loads the mappings between shortcut key sequences and // profile paths void loadShortcuts();