forked from qt-creator/qt-creator
BinEditor: Clear data on setSizes
Was removed in 5098787a
.
Jumping to an address in the current view doesn't refresh the data.
Task-number: QTCREATORBUG-11064
Change-Id: Ib9682f7809ada58d7a67683415fec818a8c00620
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
78cf39cf27
commit
7a037841a4
@@ -401,6 +401,7 @@ void BinEditorWidget::setSizes(quint64 startAddr, qint64 range, int blockSize)
|
|||||||
|
|
||||||
m_blockSize = blockSize;
|
m_blockSize = blockSize;
|
||||||
m_emptyBlock = QByteArray(blockSize, '\0');
|
m_emptyBlock = QByteArray(blockSize, '\0');
|
||||||
|
m_data.clear();
|
||||||
m_modifiedData.clear();
|
m_modifiedData.clear();
|
||||||
m_requests.clear();
|
m_requests.clear();
|
||||||
|
|
||||||
@@ -1567,7 +1568,6 @@ void BinEditorWidget::setNewWindowRequestAllowed(bool c)
|
|||||||
void BinEditorWidget::updateContents()
|
void BinEditorWidget::updateContents()
|
||||||
{
|
{
|
||||||
m_oldData = m_data;
|
m_oldData = m_data;
|
||||||
m_data.clear();
|
|
||||||
setSizes(baseAddress() + cursorPosition(), m_size, m_blockSize);
|
setSizes(baseAddress() + cursorPosition(), m_size, m_blockSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user