Add jpg image format as an option for dictionary icons.

This commit is contained in:
Julian Depetris Chauvin 2013-05-11 20:15:00 -03:00
parent 8a1800ca33
commit 3d9d3ae1a6

View file

@ -198,6 +198,12 @@ bool Class::loadIconFromFile( QString const & _filename, bool isFullName )
info = QFileInfo( fileName );
}
if ( !info.isFile() )
{
fileName.chop( 3 );
fileName += "jpg";
info = QFileInfo( fileName );
}
if ( !info.isFile() )
{
fileName.chop( 3 );
fileName += "ico";