KDE/kdevplatform/plugins/vcscommon

Andreas Pakulat apaku at gmx.de
Tue Aug 19 15:49:36 UTC 2008


SVN commit 849464 by apaku:

kdevplatform plugins should NOT use KGlobal::config() as that means their
settings are not shared across different kdevplatform applications. Instead use
KSharedConfig::openConfig( componentData() )
CCMAIL:kdevelop-devel at kdevelop.org


 M  +2 -2      kdevvcscommonplugin.cpp  


--- trunk/KDE/kdevplatform/plugins/vcscommon/kdevvcscommonplugin.cpp #849463:849464
@@ -364,7 +364,7 @@
     {
         KDevelop::VcsCommitDialog* dlg = new KDevelop::VcsCommitDialog( plugin->extension<KDevelop::IBasicVersionControl>(), core()->uiController()->activeMainWindow() );
         dlg->setCommitCandidates( m_ctxUrls.value( plugin ) );
-        KConfigGroup vcsGroup( KGlobal::config(), "VcsCommon" );
+        KConfigGroup vcsGroup( KSharedConfig::openConfig( componentData() ), "VcsCommon" );
         dlg->setOldMessages( vcsGroup.readEntry( "OldCommitMessages", QStringList() ) );
         dlg->setRecursive( true );
         connect(dlg, SIGNAL(doCommit(KDevelop::VcsCommitDialog*)), this, SLOT(executeCommit(KDevelop::VcsCommitDialog*)));
@@ -376,7 +376,7 @@
 void KDevVcsCommonPlugin::executeCommit( KDevelop::VcsCommitDialog* dlg )
 {
     KDevelop::IBasicVersionControl* iface = dlg->versionControlIface();
-    KConfigGroup vcsGroup( KGlobal::config(), "VcsCommon" );
+    KConfigGroup vcsGroup( KSharedConfig::openConfig( componentData() ), "VcsCommon" );
     QStringList oldMessages = vcsGroup.readEntry( "OldCommitMessages", QStringList() );
     oldMessages << dlg->message();
     vcsGroup.writeEntry("OldCommitMessages", oldMessages);




More information about the KDevelop-devel mailing list