[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/konqueror/settings/konqhtml
From: Johannes Simon <johannes.simon () gmail ! com>
Date: 2007-12-27 10:46:14
Message-ID: 1198752374.890353.32152.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 753398 by jsimon:
Fix in pluginLoad(): In contrast to the mimetype, additional suffixes cannot be \
expected when parsing a string representing the plugin. Thus, check for suffixes \
before trying to access them to avoid crashes.
M +6 -2 pluginopts.cpp
--- trunk/KDE/kdebase/apps/konqueror/settings/konqhtml/pluginopts.cpp #753397:753398
@@ -590,8 +590,12 @@
QStringList desc = line.split(':');
QString mime = desc[0].trimmed();
- QString name = desc[2];
- QString suffixes = desc[1];
+ QString name;
+ QString suffixes;
+ if (desc.count() > 2)
+ name = desc[2];
+ if (desc.count() > 1)
+ suffixes = desc[1];
if (!mime.isEmpty() && next) {
//kDebug() << "mime=" << mime << " desc=" << name << " suffix=" << \
suffixes;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic