diff --git a/src/config.cc b/src/config.cc index 045d8130..fc2940ab 100644 --- a/src/config.cc +++ b/src/config.cc @@ -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();