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>
This commit is contained in:
parent
80256442af
commit
5f145d4bf7
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue