forked from osmocom/wireshark
Qt: Correct drag and drop with column header
Drag and Drop used the wrong filter name, fixing by using the correct one and re-establish the feature Change-Id: I7b3722c8087b4af7f2ea74f833ea130cbec0d19e Reviewed-on: https://code.wireshark.org/review/35118 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
a51c58fa1b
commit
8633ca6a88
|
@ -93,7 +93,7 @@ void PacketListHeader::dropEvent(QDropEvent *event)
|
|||
|
||||
QJsonObject data = jsonDoc.object();
|
||||
|
||||
if (event->source() != this && data.contains("description") && data.contains("field"))
|
||||
if ( event->source() != this && data.contains("description") && data.contains("name") )
|
||||
{
|
||||
event->setDropAction(Qt::CopyAction);
|
||||
event->accept();
|
||||
|
@ -102,7 +102,7 @@ void PacketListHeader::dropEvent(QDropEvent *event)
|
|||
if (mw)
|
||||
{
|
||||
int idx = logicalIndexAt(event->pos());
|
||||
mw->insertColumn(data["description"].toString(), data["field"].toString(), idx);
|
||||
mw->insertColumn(data["description"].toString(), data["name"].toString(), idx);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue