aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Ruprich <mruprich@redhat.com>2023-03-07 10:11:33 +0100
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2023-03-07 19:31:50 +0000
commit34d3f122d375ce5805c484e62411784e076c0e28 (patch)
tree7f628910286fc4f1501ac77f68daae3a3da5e510
parente6eca895012bcaa86dd9ad2c6d0c8ed595df1d64 (diff)
Converting QByteArray to const char *
-rw-r--r--ui/qt/wireshark_main_window_slots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/wireshark_main_window_slots.cpp b/ui/qt/wireshark_main_window_slots.cpp
index c29807f0fe..f2c38c719b 100644
--- a/ui/qt/wireshark_main_window_slots.cpp
+++ b/ui/qt/wireshark_main_window_slots.cpp
@@ -2503,7 +2503,7 @@ void WiresharkMainWindow::showHideMainWidgets(QAction *action)
if (widget == toolbar) {
GList *entry = g_list_find_custom(recent.interface_toolbars, action->text().toUtf8(), (GCompareFunc)strcmp);
if (show && !entry) {
- recent.interface_toolbars = g_list_append(recent.interface_toolbars, g_strdup(action->text().toUtf8()));
+ recent.interface_toolbars = g_list_append(recent.interface_toolbars, g_strdup(action->text().toUtf8().constData()));
} else if (!show && entry) {
recent.interface_toolbars = g_list_remove(recent.interface_toolbars, entry->data);
}