diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-02 13:24:45 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-02 13:24:45 +0200 |
commit | 76e346c8e5ac7067cc49063e0c11d88c23871115 (patch) | |
tree | d0bf22a28330a2feb675b7d68011f22a4473bdfd /lib | |
parent | Split off UrlFilter into library (diff) | |
download | smolbote-76e346c8e5ac7067cc49063e0c11d88c23871115.tar.xz |
Add Util namespace
- Util::files lists files in specified .path
Diffstat (limited to 'lib')
-rw-r--r-- | lib/web/profilemanager.cpp | 15 |
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) |