From 5f145d4bf7add05ecf7609a488d928082b523c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Wed, 11 Apr 2018 13:35:18 +0200 Subject: Qt: Do not show MaxMind DB path when not enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The About dialog should not show MaxMind DB path when built without the MaxMind DB resolver. Change-Id: Id5b51628a04005fc4dcaacea26abb3a0ddee9b66 Reviewed-on: https://code.wireshark.org/review/26886 Petri-Dish: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- ui/qt/about_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/qt/about_dialog.cpp b/ui/qt/about_dialog.cpp index 695b7c643d..a9f42256dc 100644 --- a/ui/qt/about_dialog.cpp +++ b/ui/qt/about_dialog.cpp @@ -248,10 +248,12 @@ FolderListModel::FolderListModel(QObject * parent): foreach(QString path, extPaths) appendRow( QStringList() << tr("Extcap path") << path.trimmed() << tr("Extcap Plugins search path")); +#ifdef HAVE_MAXMINDDB /* MaxMind DB */ QStringList maxMindDbPaths = QString(maxmind_db_get_paths()).split(G_SEARCHPATH_SEPARATOR_S); foreach(QString path, maxMindDbPaths) appendRow( QStringList() << tr("MaxMind DB path") << path.trimmed() << tr("MaxMind DB database search path")); +#endif #ifdef HAVE_LIBSMI /* SMI MIBs/PIBs */ -- cgit v1.2.3