Skip to content

Commit

Permalink
fix crash in about box
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13056 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 15, 2010
1 parent e38239e commit 0d925fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/qgsabout.cpp
Expand Up @@ -142,7 +142,11 @@ void QgsAbout::init()
//ignore the line if it starts with a hash....
if ( sline.left( 1 ) == "#" ) continue;
QStringList myTokens = sline.split( "|", QString::SkipEmptyParts );
if ( myTokens.size() > 1 )
if ( myTokens.size() == 0 )
{
continue;
}
else if ( myTokens.size() > 1 )
{
website = "<a href=\"" + myTokens[1].remove( ' ' ) + "\">" + myTokens[1] + "</a>";
}
Expand Down Expand Up @@ -291,7 +295,7 @@ void QgsAbout::setPluginInfo()
myString += "</li>\n</ol>\n";
//qt image plugins
myString += "<b>" + tr( "Available Qt Image Plugins" ) + "</b><br>";
myString += tr( "Qt Image Plugin Search Paths <br>" );
myString += tr( "Qt Image Plugin Search Paths <br>" );
myString += QApplication::libraryPaths().join( "<br>" );
myString += "<ol>\n<li>\n";
QList<QByteArray> myImageFormats = QImageReader::supportedImageFormats();
Expand Down

0 comments on commit 0d925fa

Please sign in to comment.