[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/colors
From: Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date: 2007-09-17 15:50:40
Message-ID: 1190044240.866644.26201.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 713465 by mwoehlke:
Initialize config in KStatefulBrush if it is null (like the apidoc says we do :-) ). \
This should fix the crash in KGamePopupItem.
CCMAIL: kleag@free.fr
CCMAIL: kde-games-devel@kde.org
M +6 -2 kcolorscheme.cpp
--- trunk/KDE/kdelibs/kdeui/colors/kcolorscheme.cpp #713464:713465
@@ -356,9 +356,9 @@
KColorScheme::KColorScheme(QPalette::ColorGroup state, ColorSet set, \
KSharedConfigPtr config) {
- if (!config) {
+ if (!config)
config = KGlobal::config();
- }
+
switch (set) {
case Window:
d = new KColorSchemePrivate(config, state, "Colors:Window", \
defaultWindowColors); @@ -514,6 +514,8 @@
KStatefulBrush::KStatefulBrush(const QBrush &brush, KSharedConfigPtr config)
{
+ if (!config)
+ config = KGlobal::config();
d = new KStatefulBrushPrivate[3];
d[0] = brush;
d[1] = StateEffects(QPalette::Disabled, config).brush(brush);
@@ -523,6 +525,8 @@
KStatefulBrush::KStatefulBrush(const QBrush &brush, const QBrush &background,
KSharedConfigPtr config)
{
+ if (!config)
+ config = KGlobal::config();
d = new KStatefulBrushPrivate[3];
d[0] = brush;
d[1] = StateEffects(QPalette::Disabled, config).brush(brush, background);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic