mirror of
https://github.com/hasherezade/pe-bear.git
synced 2026-10-12 02:15:21 +00:00
[BUGFIX] Fixed uneditable content in clickable disasm records
This commit is contained in:
@@ -9,9 +9,13 @@ HexDumpModel::HexDumpModel(PeHandler *peHndl, bool isHexFormat, QObject *parent)
|
||||
startOff(0), endOff(0), pageSize(PREVIEW_SIZE),
|
||||
addrType(Executable::RAW)
|
||||
{
|
||||
disconnect(myPeHndl, SIGNAL(modified()), this, SLOT(onNeedReset()));
|
||||
connect(myPeHndl, SIGNAL(modified()), this, SLOT(onNeedReset()), Qt::QueuedConnection);
|
||||
connect(myPeHndl, SIGNAL(marked()), this, SLOT(onNeedReset()), Qt::QueuedConnection);
|
||||
connectSignals();
|
||||
}
|
||||
|
||||
void HexDumpModel::connectSignals()
|
||||
{
|
||||
connect(myPeHndl, SIGNAL(modified()), this, SLOT(onNeedReset()));
|
||||
connect(myPeHndl, SIGNAL(marked()), this, SLOT(onNeedReset()));
|
||||
}
|
||||
|
||||
void HexDumpModel::setShownContent(offset_t start, bufsize_t size)
|
||||
|
||||
@@ -50,6 +50,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual void connectSignals();
|
||||
|
||||
Executable::addr_type addrType;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user