aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-04-11 13:35:18 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2018-04-16 06:57:11 +0000
commit5f145d4bf7add05ecf7609a488d928082b523c34 (patch)
tree5cb675138679e5ba5bd3d7f76a10e559c4a2b4ed
parent80256442af3091778339a4f76cebdd20c33c958e (diff)
Qt: Do not show MaxMind DB path when not enabled
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 <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
-rw-r--r--ui/qt/about_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/about_dialog.cpp b/ui/qt/about_dialog.cpp
index 695b7c6..a9f4225 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 */