summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-21 05:37:41 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-21 05:37:41 (GMT)
commit83756a68b1db8b174a4cdaa601820f04182b7118 (patch)
tree5221472ba0084266f273bc910b1754e5bd4ec12e
parentc0112f7762ceeb101d3d1bb773830ea173cabc0c (diff)
Remove settings
-rw-r--r--src/folder/foldertreewidgetproxymodel.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/folder/foldertreewidgetproxymodel.cpp b/src/folder/foldertreewidgetproxymodel.cpp
index 66f450a..c201cd6 100644
--- a/src/folder/foldertreewidgetproxymodel.cpp
+++ b/src/folder/foldertreewidgetproxymodel.cpp
@@ -47,6 +47,8 @@ public:
hideSpecificFolder(false),
hideOutboxFolder(false)
{
+ const KColorScheme scheme(QPalette::Active, KColorScheme::View);
+ brokenAccountColor = scheme.foreground(KColorScheme::NegativeText).color();
}
QSet<QString> includedMimeTypes;
@@ -87,15 +89,6 @@ FolderTreeWidgetProxyModel::~FolderTreeWidgetProxyModel()
void FolderTreeWidgetProxyModel::readConfig()
{
- KConfigGroup collectionFolderView(KernelIf->config(), "CollectionFolderView");
- KColorScheme scheme(QPalette::Active, KColorScheme::View);
- if (MessageCore::MessageCoreSettings::self()->useDefaultColors()) {
- d->brokenAccountColor = scheme.foreground(KColorScheme::NegativeText).color();
- } else {
- d->brokenAccountColor =
- collectionFolderView.readEntry("BrokenAccountColor",
- scheme.foreground(KColorScheme::NegativeText).color());
- }
invalidate();
}