From 76e346c8e5ac7067cc49063e0c11d88c23871115 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 2 Oct 2018 13:24:45 +0200 Subject: Add Util namespace - Util::files lists files in specified .path --- lib/web/profilemanager.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib') 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 &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) -- cgit v1.2.1