summaryrefslogtreecommitdiff
path: root/ui/qt/endpoint_dialog.cpp
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2014-09-18 10:26:35 -0400
committerJeff Morriss <jeff.morriss.ws@gmail.com>2014-09-18 14:27:41 +0000
commit4b15171cbbec976796c03be4c05f821d09e64d44 (patch)
tree8a28ad65b35ac41c691340f2924e57039ea1a085 /ui/qt/endpoint_dialog.cpp
parent1315ee1974491745e50451e3f84e1c35b5a09278 (diff)
downloadwireshark-4b15171cbbec976796c03be4c05f821d09e64d44.tar.gz
Fix compilation when we don't HAVE_GEOIP.
We really need a buildbot or Petri-Dish which doesn't have GeoIP because this problem keeps popping up. Bug: 10480 Change-Id: Iccba50dfcafd2dbacb315b9416324de4114be220 Reviewed-on: https://code.wireshark.org/review/4171 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'ui/qt/endpoint_dialog.cpp')
-rw-r--r--ui/qt/endpoint_dialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/endpoint_dialog.cpp b/ui/qt/endpoint_dialog.cpp
index d6a2934964..6ad046418c 100644
--- a/ui/qt/endpoint_dialog.cpp
+++ b/ui/qt/endpoint_dialog.cpp
@@ -77,7 +77,9 @@ EndpointDialog::EndpointDialog(QWidget *parent, capture_file *cf, int cli_proto_
fillTypeMenu(endp_protos);
+#ifdef HAVE_GEOIP
tabChanged();
+#endif
itemSelectionChanged();
if (cap_file_) {
@@ -176,7 +178,6 @@ void EndpointDialog::tabChanged()
EndpointTreeWidget *cur_tree = qobject_cast<EndpointTreeWidget *>(trafficTableTabWidget()->currentWidget());
map_bt_->setEnabled(cur_tree->hasGeoIPData());
}
-#endif
void EndpointDialog::createMap()
{
@@ -194,6 +195,7 @@ void EndpointDialog::createMap()
}
QDesktopServices::openUrl(QUrl::fromLocalFile(gchar_free_to_qstring(map_path)));
}
+#endif
void EndpointDialog::on_buttonBox_helpRequested()
{