author | zecke <zecke> | 2004-09-12 23:18:37 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-12 23:18:37 (UTC) |
commit | f05a19bd1e248ea8cea29d361a1a8085ca145c6a (patch) (unidiff) | |
tree | ae7204968f4e8841232a976eb9cc341db65dca50 | |
parent | 8123b75c55cb5140ae5b0c5aeddb4644a0a8ffbb (diff) | |
download | opie-f05a19bd1e248ea8cea29d361a1a8085ca145c6a.zip opie-f05a19bd1e248ea8cea29d361a1a8085ca145c6a.tar.gz opie-f05a19bd1e248ea8cea29d361a1a8085ca145c6a.tar.bz2 |
If there is no 'excluded' plugin the excluded-list wasn't made
empty and the old/prior setting still was used.
This fix makes sure that an empty string is written if no plugin
is excluded
-rw-r--r-- | libopie2/opiecore/opluginloader.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libopie2/opiecore/opluginloader.cpp b/libopie2/opiecore/opluginloader.cpp index 1edf3a1..b8b6b79 100644 --- a/libopie2/opiecore/opluginloader.cpp +++ b/libopie2/opiecore/opluginloader.cpp | |||
@@ -561,4 +561,7 @@ OPluginItem::List OGenericPluginLoader::plugins( const QString& _dir, bool sorte | |||
561 | QStringList::Iterator it = pos.begin(); | 561 | QStringList::Iterator it = pos.begin(); |
562 | while ( it != pos.end() ) | 562 | QString tmp; int i; |
563 | positionMap.insert( *it++, (*it++).toInt() ); | 563 | while ( it != pos.end() ) { |
564 | tmp = *it++; i = (*it++).toInt(); | ||
565 | positionMap.insert( tmp, i ); | ||
566 | } | ||
564 | 567 | ||
@@ -587,2 +590,3 @@ OPluginItem::List OGenericPluginLoader::plugins( const QString& _dir, bool sorte | |||
587 | 590 | ||
591 | |||
588 | lst.append( item ); | 592 | lst.append( item ); |
@@ -836,2 +840,5 @@ void OPluginManager::save() { | |||
836 | excluded[path].append( item.name() ); | 840 | excluded[path].append( item.name() ); |
841 | if ( !excluded.contains( path ) ) | ||
842 | excluded[path] = QString::null; | ||
843 | |||
837 | } | 844 | } |