summaryrefslogtreecommitdiff
authorzecke <zecke>2004-05-28 23:34:31 (UTC)
committer zecke <zecke>2004-05-28 23:34:31 (UTC)
commit62c6f006218382835539f23a71c3ff6d1c51fb2f (patch) (side-by-side diff)
tree364e0774bfe90347204b5e20020a0e71d2dca4f6
parente370bbfbe879086e1e1cb3d856544f231ca614be (diff)
downloadopie-62c6f006218382835539f23a71c3ff6d1c51fb2f.zip
opie-62c6f006218382835539f23a71c3ff6d1c51fb2f.tar.gz
opie-62c6f006218382835539f23a71c3ff6d1c51fb2f.tar.bz2
Same config name
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/opluginloader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opiecore/opluginloader.cpp b/libopie2/opiecore/opluginloader.cpp
index 87e24d4..c2dc239 100644
--- a/libopie2/opiecore/opluginloader.cpp
+++ b/libopie2/opiecore/opluginloader.cpp
@@ -537,25 +537,25 @@ OPluginItem::List OGenericPluginLoader::plugins( const QString& _dir, bool sorte
/*
* get excluded list and then iterate over them
* Excluded list contains the name
* Position is a list with 'name.pos.name.pos.name.pos'
*
* For the look up we will create two QMap<QString,pos>
*/
QMap<QString, int> positionMap;
QMap<QString, int> excludedMap;
- OConfig cfg( m_dir+"odpplugins" );
+ OConfig cfg( m_dir+"-odpplugins" );
cfg.setGroup( _dir );
QStringList excludes = cfg.readListEntry( "Excluded", ',' );
for ( QStringList::Iterator it = excludes.begin(); it != excludes.end(); ++it )
excludedMap.insert( *it, -2 );
if ( m_isSorted ) {
QStringList pos = cfg.readListEntry( "Positions", '.' );
QStringList::Iterator it = pos.begin();
while ( it != pos.end() )
positionMap.insert( *it++, (*it++).toInt() );
@@ -854,25 +854,25 @@ void OPluginManager::save() {
*/
for ( QMap<QString, QStringList>::Iterator it = positions.begin(); it != positions.end(); ++it ) {
OConfigGroupSaver saver( &cfg, it.key() );
cfg.writeEntry("Positions", it.data(), '.' );
}
}
/**
* @internal
*/
QString OPluginManager::configName()const {
QString str = m_loader ? m_loader->name() : m_cfgName;
- return str + "odpplugins";
+ return str + "-odpplugins";
}
/**
* @internal.. replace in m_plugins by path... this is linear search O(n/2)
*/
void OPluginManager::replace( const OPluginItem& item ) {
OPluginItem _item;
/* for all plugins */
for ( OPluginItem::List::Iterator it=m_plugins.begin();it != m_plugins.end(); ++it ) {
_item = *it;
/* if path and name are the same we will remove, readd and return */