diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-07-24 08:10:33 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-07-24 08:10:33 +0000 |
commit | d1559b4207a6c3814e362f8d1d8680b91b6ff369 (patch) | |
tree | 5551f995c8dffcfd729532b9e289326b7d6088ed /file.c | |
parent | a15da43111ecf6b17b8b8720a7ef44708cfee33e (diff) |
When using the new packet list select the first packet when the file read is complete. This should take care of the crash when closing WS.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29186 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -597,12 +597,15 @@ cf_read(capture_file *cf) cf_callback_invoke(cf_cb_file_read_finished, cf); -#ifndef NEW_PACKET_LIST /* If we have any displayed packets to select, select the first of those packets by making the first row the selected row. */ - if (cf->first_displayed != NULL) + if (cf->first_displayed != NULL){ +#ifdef NEW_PACKET_LIST + new_packet_list_select_first_row(); +#else packet_list_select_row(0); #endif /* NEW_PACKET_LIST */ + } if(stop_flag) { simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, |