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:
Roland Knall 2019-11-21 15:57:11 +01:00
parent 59ce14522b
commit c55dd79d2c
3 changed files with 13 additions and 2 deletions

View File

@ -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();

View File

@ -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:

View File

@ -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_;