diff options
Diffstat (limited to 'ui/qt/endpoint_dialog.cpp')
-rw-r--r-- | ui/qt/endpoint_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/endpoint_dialog.cpp b/ui/qt/endpoint_dialog.cpp index 952f2f1820..dd7f5ba556 100644 --- a/ui/qt/endpoint_dialog.cpp +++ b/ui/qt/endpoint_dialog.cpp @@ -71,7 +71,7 @@ EndpointDialog::EndpointDialog(QWidget &parent, CaptureFile &cf, int cli_proto_i } // Bring the command-line specified type to the front. - if (get_conversation_by_proto_id(cli_proto_id)) { + if ((cli_proto_id > 0) && (get_conversation_by_proto_id(cli_proto_id))) { endp_protos.removeAll(cli_proto_id); endp_protos.prepend(cli_proto_id); } |