index
:
pcap-editor.git
A KISS Qt6 (Widget) based interactive PCAP editor.
log msg
author
committer
range
main
summary
refs
log
tree
commit
diff
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Toni Uhlig <matzeton@googlemail.com>
2024-04-11 01:40:30 +0200
committer
Toni Uhlig <matzeton@googlemail.com>
2024-04-11 01:40:30 +0200
commit
9c463c272227ae13dc41bac2bc6c6e79356d59da
(
patch
)
tree
123ba9c6115ba314a43fc61620cec9e04dc3b7e0
parent
2b8b9a5f99565bbc6f129657ae86aca760c6bf32
(
diff
)
Fix dangling pointer in hex view.
main
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat
-rw-r--r--
mainwindow.cpp
2
1 files changed, 1 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 41c4254..b945c9e 100644
--- a/
mainwindow.cpp
+++ b/
mainwindow.cpp
@@ -166,7 +166,7 @@ MainWindow::MainWindow(QWidget *parent)
ui->tableWidget->clearSelection();
ui->tableWidget->clearContents();
ui->tableWidget->setRowCount(0);
- myHexEdit.editor.data().data_ptr()->clear();
+ myHexEdit.editor.setData(QByteArray::fromRawData(nullptr, 0));
enableTableButtons(this, true);
enableMenuButtons(this, true);
enableHexEditButtons(this, false);