From kde-commits Thu Jan 26 14:54:54 2006 From: Laurent Montel Date: Thu, 26 Jan 2006 14:54:54 +0000 To: kde-commits Subject: KDE/kdebase/kioslave Message-Id: <1138287294.009939.11851.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113828734601274 SVN commit 502566 by mlaurent: readListEntry-- M +1 -1 cgi/cgi.cpp M +1 -1 cgi/kcmcgi/kcmcgi.cpp M +3 -3 media/libmediacommon/notifiersettings.cpp --- trunk/KDE/kdebase/kioslave/cgi/cgi.cpp #502565:502566 @@ -39,7 +39,7 @@ KConfig cfg( "kcmcgirc" ); cfg.setGroup( "General" ); - mCgiPaths = cfg.readListEntry( "Paths" ); + mCgiPaths = cfg.readEntry( "Paths" , QStringList() ); } CgiProtocol::~CgiProtocol() --- trunk/KDE/kdebase/kioslave/cgi/kcmcgi/kcmcgi.cpp #502565:502566 @@ -118,7 +118,7 @@ void KCMCgi::load() { mConfig->setGroup( "General" ); - QStringList paths = mConfig->readListEntry( "Paths" ); + QStringList paths = mConfig->readEntry( "Paths" , QStringList() ); mListBox->insertStringList( paths ); } --- trunk/KDE/kdebase/kioslave/media/libmediacommon/notifiersettings.cpp #502565:502566 @@ -284,7 +284,7 @@ QList services; const QString filename = desktop.fileName(); - const QStringList mimetypes = desktop.readListEntry( "ServiceTypes" ); + const QStringList mimetypes = desktop.readEntry( "ServiceTypes" , QStringList() ); QList type_services = KDEDesktopMimeType::userDefinedServices(filename, true); @@ -315,14 +315,14 @@ && desktop.hasKey( "ServiceTypes" ) && !desktop.readEntry( "X-KDE-MediaNotifierHide", QVariant(false )).toBool() ) { - const QStringList actions = desktop.readListEntry( "Actions" ); + const QStringList actions = desktop.readEntry( "Actions" , QStringList() ); if ( actions.size()!=1 ) { return false; } - const QStringList types = desktop.readListEntry( "ServiceTypes" ); + const QStringList types = desktop.readEntry( "ServiceTypes" , QStringList() ); if ( mimetype.isEmpty() ) {