aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-02 13:24:45 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-02 13:24:45 +0200
commit76e346c8e5ac7067cc49063e0c11d88c23871115 (patch)
treed0bf22a28330a2feb675b7d68011f22a4473bdfd /lib
parentSplit off UrlFilter into library (diff)
downloadsmolbote-76e346c8e5ac7067cc49063e0c11d88c23871115.tar.xz
Add Util namespace
- Util::files lists files in specified .path
Diffstat (limited to 'lib')
-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)