Skip to content
Permalink
Browse files

fix crash in about box

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13056 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Mar 15, 2010
1 parent e38239e commit 0d925faace7709c2d019f5611441bfdbc969b81c
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/app/qgsabout.cpp
@@ -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>";
}
@@ -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();

0 comments on commit 0d925fa

Please sign in to comment.
You can’t perform that action at this time.