From 361a9ceb97042c2b1fa8e6f182b714660bdb9bdf Mon Sep 17 00:00:00 2001 From: Abs62 Date: Sun, 20 Apr 2014 12:42:45 +0400 Subject: [PATCH] Full-text search: Hide option for Zim format in preferences if GoldenDict compiled without it support --- preferences.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/preferences.cc b/preferences.cc index ddbb0c33..faad8428 100644 --- a/preferences.cc +++ b/preferences.cc @@ -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 ); }