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 @@ ...@@ -21,7 +21,10 @@
#include <QMouseEvent> #include <QMouseEvent>
using namespace MessageViewer; using namespace MessageViewer;
namespace
{
static const char myHtmlStatusBarConfigGroupName[] = "Reader";
}
HtmlStatusBar::HtmlStatusBar(QWidget *parent) HtmlStatusBar::HtmlStatusBar(QWidget *parent)
: QLabel(parent) : QLabel(parent)
, mMode(MimeTreeParser::Util::Normal) , mMode(MimeTreeParser::Util::Normal)
...@@ -142,7 +145,7 @@ QString HtmlStatusBar::toolTip() const ...@@ -142,7 +145,7 @@ QString HtmlStatusBar::toolTip() const
QColor HtmlStatusBar::fgColor() const QColor HtmlStatusBar::fgColor() const
{ {
KConfigGroup conf(KSharedConfig::openConfig(), "Reader"); KConfigGroup conf(KSharedConfig::openConfig(), myHtmlStatusBarConfigGroupName);
QColor defaultColor, color; QColor defaultColor, color;
switch (mode()) { switch (mode()) {
case MimeTreeParser::Util::Html: case MimeTreeParser::Util::Html:
...@@ -168,7 +171,7 @@ QColor HtmlStatusBar::fgColor() const ...@@ -168,7 +171,7 @@ QColor HtmlStatusBar::fgColor() const
QColor HtmlStatusBar::bgColor() const QColor HtmlStatusBar::bgColor() const
{ {
KConfigGroup conf(KSharedConfig::openConfig(), "Reader"); KConfigGroup conf(KSharedConfig::openConfig(), myHtmlStatusBarConfigGroupName);
QColor defaultColor, color; QColor defaultColor, color;
switch (mode()) { 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