aboutsummaryrefslogtreecommitdiff
path: root/lib/web/profilemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/web/profilemanager.cpp')
-rw-r--r--lib/web/profilemanager.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/web/profilemanager.cpp b/lib/web/profilemanager.cpp
index 75fd413..d6c61a9 100644
--- a/lib/web/profilemanager.cpp
+++ b/lib/web/profilemanager.cpp
@@ -15,21 +15,6 @@ ProfileManager::ProfileManager(const QHash<QString, QString> &profileSection, co
: QObject(parent)
, defaults(profileSection)
{
- // load profiles from path
- const QDir profilesDir(defaults.value("profile.path"));
-
- if(profilesDir.exists()) {
- const auto entries = profilesDir.entryInfoList({ "*.profile" }, QDir::Files | QDir::Readable, QDir::Time);
-
- for(const QFileInfo &f : entries) {
- loadProfile(f.absoluteFilePath());
- }
- }
-
- const QString defaultProfile = defaults.value("profile.default", defaultId);
- if(m_profiles.count(defaultProfile) == 0) {
- loadProfile(defaultProfile);
- }
}
WebProfile *ProfileManager::loadProfile(const QString &path)