mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Add jpg image format as an option for dictionary icons.
This commit is contained in:
parent
8a1800ca33
commit
3d9d3ae1a6
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue