aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_list_model.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-12-17 23:03:21 +0000
committerGerald Combs <gerald@wireshark.org>2012-12-17 23:03:21 +0000
commit77e6140ba99ca1785972bb8455877fc33350990a (patch)
tree779b3abea24607c375535fd4b9ca5dadb0ea56b8 /ui/qt/packet_list_model.cpp
parentdc908733eaf62b0a3506dca52f2412b92a6cbf7c (diff)
Implement the frame mark, ignore, and time reference actions. Update the
text of a few menu items. svn path=/trunk/; revision=46576
Diffstat (limited to 'ui/qt/packet_list_model.cpp')
-rw-r--r--ui/qt/packet_list_model.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/packet_list_model.cpp b/ui/qt/packet_list_model.cpp
index a5f24d17ea..c9a688457a 100644
--- a/ui/qt/packet_list_model.cpp
+++ b/ui/qt/packet_list_model.cpp
@@ -37,7 +37,6 @@
#include "wireshark_application.h"
#include <QColor>
-
PacketListModel::PacketListModel(QObject *parent, capture_file *cf) :
QAbstractItemModel(parent)
{
@@ -287,7 +286,7 @@ gint PacketListModel::appendPacket(frame_data *fdata)
}
frame_data *PacketListModel::getRowFdata(int row) {
- if (row >= visible_rows_.count())
+ if (row < 0 || row >= visible_rows_.size())
return NULL;
PacketListRecord *record = visible_rows_[row];
if (!record)