forked from osmocom/wireshark
Qt: Fix Logray compilation with Qt 6.4
Copy+paste afa2579124
to fix
wireshark/ui/logray/logray_main_window_slots.cpp:1564:40: error: attempt to use a deleted function
stats_tree_action->setData(cfg->abbr);
^
Qt/6.4.2/macos/lib/QtCore.framework/Headers/qvariant.h:199:5: note: 'QVariant<char *, false>' has been explicitly marked deleted here
QVariant(T) = delete;
^
This commit is contained in:
parent
ed8ee831fd
commit
9d9d72f47b
|
@ -1561,7 +1561,7 @@ void LograyMainWindow::addStatsPluginsToMenu() {
|
|||
}
|
||||
|
||||
stats_tree_action = new QAction(stat_name, this);
|
||||
stats_tree_action->setData(cfg->abbr);
|
||||
stats_tree_action->setData(QString::fromUtf8(cfg->abbr));
|
||||
parent_menu->addAction(stats_tree_action);
|
||||
connect(stats_tree_action, &QAction::triggered, this, [this]() {
|
||||
QAction* action = qobject_cast<QAction*>(sender());
|
||||
|
|
Loading…
Reference in New Issue