summaryrefslogtreecommitdiff
path: root/ui/qt/remote_capture_dialog.cpp
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2017-02-20 21:44:27 +0100
committerJörg Mayer <jmayer@loplof.de>2017-02-20 23:06:10 +0000
commitb82f7c5b7d30241dd190cd243111b224c2813c90 (patch)
tree97426bd96fc1a6f2358fe2fe68780a16881fc933 /ui/qt/remote_capture_dialog.cpp
parent124807e59debe31754092caacedfb29ccb14efd0 (diff)
downloadwireshark-b82f7c5b7d30241dd190cd243111b224c2813c90.tar.gz
Calling g_hash_table_size with a NULL argument causes a GLib-CRITICAL.
This fixes the first issue appearing in the log of Bug: 13418 Change-Id: I2fe68a06dd4a19be8300ec34be65a8dc47d0f8b3 Reviewed-on: https://code.wireshark.org/review/20214 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'ui/qt/remote_capture_dialog.cpp')
-rw-r--r--ui/qt/remote_capture_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/remote_capture_dialog.cpp b/ui/qt/remote_capture_dialog.cpp
index 81cd455183..98cc35ed10 100644
--- a/ui/qt/remote_capture_dialog.cpp
+++ b/ui/qt/remote_capture_dialog.cpp
@@ -84,7 +84,7 @@ void RemoteCaptureDialog::fillComboBox()
{
GHashTable *ht = get_remote_host_list();
ui->hostCombo->addItem(QString(""));
- if (g_hash_table_size(ht) > 0) {
+ if (recent_get_remote_host_list_size() > 0) {
g_hash_table_foreach(ht, fillBox, ui->hostCombo);
ui->hostCombo->insertSeparator(g_hash_table_size(ht)+1);
ui->hostCombo->addItem(QString(tr("Clear list")));