Full-text search: Hide option for Zim format in preferences if GoldenDict compiled without it support

This commit is contained in:
Abs62 2014-04-20 12:42:45 +04:00
parent 64b299513c
commit 361a9ceb97

View file

@ -238,7 +238,9 @@ Preferences::Preferences( QWidget * parent, Config::Preferences const & p ):
ui.allowStardict->setChecked( !p.fts.disabledTypes.contains( "STARDICT", Qt::CaseInsensitive ) );
ui.allowXDXF->setChecked( !p.fts.disabledTypes.contains( "XDXF", Qt::CaseInsensitive ) );
ui.allowZim->setChecked( !p.fts.disabledTypes.contains( "ZIM", Qt::CaseInsensitive ) );
#ifndef MAKE_ZIM_SUPPORT
ui.allowZim->hide();
#endif
ui.maxDictionarySize->setValue( p.fts.maxDictionarySize );
}