Qt: Further cleanup goToPacket
Change-Id: Idf98deb3f7c34adff8e58ea243c63aa094234f46 Reviewed-on: https://code.wireshark.org/review/35181 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
parent
59ce14522b
commit
c55dd79d2c
|
@ -596,7 +596,7 @@ void ProtoTree::itemDoubleClicked(const QModelIndex &index) {
|
|||
if (QApplication::queryKeyboardModifiers() & Qt::ShiftModifier) {
|
||||
emit openPacketInNewWindow(true);
|
||||
} else {
|
||||
emit goToPacket(finfo.fieldInfo()->value.value.uinteger);
|
||||
wsApp->gotoFrame(finfo.fieldInfo()->value.value.uinteger);
|
||||
}
|
||||
} else {
|
||||
QString url = finfo.url();
|
||||
|
|
|
@ -1441,7 +1441,16 @@ void WiresharkApplication::popStatus(StatusInfo status)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
void WiresharkApplication::gotoFrame(int frame)
|
||||
{
|
||||
if (! mainWindow() || ! qobject_cast<MainWindow *>(mainWindow()))
|
||||
return;
|
||||
|
||||
MainWindow * mw = qobject_cast<MainWindow *>(mainWindow());
|
||||
mw->gotoFrame(frame);
|
||||
}
|
||||
|
||||
/*
|
||||
* Editor modelines
|
||||
*
|
||||
* Local Variables:
|
||||
|
|
|
@ -141,6 +141,8 @@ public:
|
|||
void pushStatus(StatusInfo sinfo, const QString &message, const QString &messagetip = QString());
|
||||
void popStatus(StatusInfo sinfo);
|
||||
|
||||
void gotoFrame(int frameNum);
|
||||
|
||||
private:
|
||||
bool initialized_;
|
||||
bool is_reloading_lua_;
|
||||
|
|
Loading…
Reference in New Issue