Skip to content

Commit 2bb766e

Browse files
author
jef
committed
fix crash in about box
git-svn-id: http://svn.osgeo.org/qgis/trunk@13056 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b4f124b commit 2bb766e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/app/qgsabout.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ void QgsAbout::init()
142142
//ignore the line if it starts with a hash....
143143
if ( sline.left( 1 ) == "#" ) continue;
144144
QStringList myTokens = sline.split( "|", QString::SkipEmptyParts );
145-
if ( myTokens.size() > 1 )
145+
if ( myTokens.size() == 0 )
146+
{
147+
continue;
148+
}
149+
else if ( myTokens.size() > 1 )
146150
{
147151
website = "<a href=\"" + myTokens[1].remove( ' ' ) + "\">" + myTokens[1] + "</a>";
148152
}
@@ -291,7 +295,7 @@ void QgsAbout::setPluginInfo()
291295
myString += "</li>\n</ol>\n";
292296
//qt image plugins
293297
myString += "<b>" + tr( "Available Qt Image Plugins" ) + "</b><br>";
294-
myString += tr( "Qt Image Plugin Search Paths <br>" );
298+
myString += tr( "Qt Image Plugin Search Paths <br>" );
295299
myString += QApplication::libraryPaths().join( "<br>" );
296300
myString += "<ol>\n<li>\n";
297301
QList<QByteArray> myImageFormats = QImageReader::supportedImageFormats();

0 commit comments

Comments
 (0)