mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
fix: init icon size is not normal due to missing null check
This commit is contained in:
parent
3770202ce7
commit
97bf80451a
|
@ -1157,8 +1157,10 @@ Class load()
|
|||
|
||||
c.showingDictBarNames = ( root.namedItem( "showingDictBarNames" ).toElement().text() == "1" );
|
||||
|
||||
c.usingToolbarsIconSize =
|
||||
( static_cast< ToolbarsIconSize >( root.namedItem( "usingToolbarsIconSize" ).toElement().text().toInt() ) );
|
||||
QDomNode usingToolbarsIconSize = root.namedItem( "usingToolbarsIconSize" );
|
||||
if ( !usingToolbarsIconSize.isNull() ) {
|
||||
c.usingToolbarsIconSize = static_cast< ToolbarsIconSize >( usingToolbarsIconSize.toElement().text().toInt() );
|
||||
}
|
||||
|
||||
if ( !root.namedItem( "historyExportPath" ).isNull() )
|
||||
c.historyExportPath = root.namedItem( "historyExportPath" ).toElement().text();
|
||||
|
|
Loading…
Reference in a new issue