All pastes #588970 Raw Edit

Unnamed

public text v1 · immutable
#588970 ·published 2007-06-25 19:24 UTC
rendered paste body
Index: workspace/kdm/kfrontend/kgapp.cpp
===================================================================
--- workspace/kdm/kfrontend/kgapp.cpp   (revision 680253)
+++ workspace/kdm/kfrontend/kgapp.cpp   (working copy)
@@ -144,8 +144,8 @@

        _colorScheme = KStandardDirs::locate( "data", "kdisplay/color-schemes/" + _colorScheme + ".kcsrc" );
        if (!_colorScheme.isEmpty()) {
-               KConfig config(  _colorScheme, KConfig::OnlyLocal);
-               app.setPalette( KGlobalSettings::createApplicationPalette( &config ) );
+               KSharedConfigPtr config = KSharedConfig::openConfig( _colorScheme, KConfig::OnlyLocal );
+               app.setPalette( KGlobalSettings::createApplicationPalette( config ) );
        }

        KdmThemer *themer;