Commit 02c72181 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Another fix for potential config group name bug

parent 7f774c46
......@@ -21,7 +21,10 @@
#include <QMouseEvent>
using namespace MessageViewer;
namespace
{
static const char myHtmlStatusBarConfigGroupName[] = "Reader";
}
HtmlStatusBar::HtmlStatusBar(QWidget *parent)
: QLabel(parent)
, mMode(MimeTreeParser::Util::Normal)
......@@ -142,7 +145,7 @@ QString HtmlStatusBar::toolTip() const
QColor HtmlStatusBar::fgColor() const
{
KConfigGroup conf(KSharedConfig::openConfig(), "Reader");
KConfigGroup conf(KSharedConfig::openConfig(), myHtmlStatusBarConfigGroupName);
QColor defaultColor, color;
switch (mode()) {
case MimeTreeParser::Util::Html:
......@@ -168,7 +171,7 @@ QColor HtmlStatusBar::fgColor() const
QColor HtmlStatusBar::bgColor() const
{
KConfigGroup conf(KSharedConfig::openConfig(), "Reader");
KConfigGroup conf(KSharedConfig::openConfig(), myHtmlStatusBarConfigGroupName);
QColor defaultColor, color;
switch (mode()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment