Rename the configfile to "rc" instead of ".rc" -- much more usual, and doesn't trick krazy into thinking it's an xmlgui file.

svn path=/trunk/KDE/kdebase/apps/; revision=1056615
This commit is contained in:
David Faure 2009-11-30 13:02:42 +00:00
parent 5a888ce837
commit 6295480824
5 changed files with 5 additions and 5 deletions

View file

@ -35,5 +35,5 @@ install(TARGETS konq_sidebar DESTINATION ${PLUGIN_INSTALL_DIR} )
########### install files ###############
install( FILES konq_sidebartng.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES konqsidebartng.rc DESTINATION ${CONFIG_INSTALL_DIR} )
install( FILES konqsidebartngrc DESTINATION ${CONFIG_INSTALL_DIR} )
install( FILES konqsidebarplugin.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel )

View file

@ -126,7 +126,7 @@ Sidebar_Widget::Sidebar_Widget(QWidget *parent, KParts::ReadOnlyPart *par, const
: QWidget(parent),
m_partParent(par),
m_addMenuActionGroup(this),
m_config(new KConfigGroup(KSharedConfig::openConfig("konqsidebartng.rc"),
m_config(new KConfigGroup(KSharedConfig::openConfig("konqsidebartngrc"),
currentProfile)),
m_moduleManager(m_config)
{

View file

@ -57,9 +57,9 @@ QTEST_KDEMAIN( ModuleManagerTest, NoGUI )
void ModuleManagerTest::initTestCase()
{
const QString configFile = KStandardDirs::locateLocal("config", "konqsidebartng.rc");
const QString configFile = KStandardDirs::locateLocal("config", "konqsidebartngrc");
QFile::remove(configFile);
KSharedConfig::Ptr config = KSharedConfig::openConfig("konqsidebartng.rc");
KSharedConfig::Ptr config = KSharedConfig::openConfig("konqsidebartngrc");
m_profile = "test_profile";
m_configGroup = new KConfigGroup(config, m_profile);

View file

@ -35,7 +35,7 @@ KonqSidebarDirTreeModule::KonqSidebarDirTreeModule( KonqSidebarTree * parentTree
: KonqSidebarTreeModule( parentTree, showHidden ), m_dirLister(0L), m_topLevelItem(0L)
{
// SLOW! Get the KConfigGroup from the plugin.
KConfig config("konqsidebartng.rc");
KConfig config("konqsidebartngrc");
KConfigGroup generalGroup( &config, "General" );
m_showArchivesAsFolders = generalGroup.readEntry( "ShowArchivesAsFolders", true );
}