diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-06-21 23:00:07 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-06-22 06:47:17 +0000 |
commit | 7a037841a4440ef3a4bd3067cdbd4e9a619e379c (patch) | |
tree | a76e30324139412fc55ea2c2f0366bc9d41b1422 | |
parent | 78cf39cf273e590d196720712e951313b39e0332 (diff) | |
download | qt-creator-7a037841a4440ef3a4bd3067cdbd4e9a619e379c.tar.gz |
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>
-rw-r--r-- | src/plugins/bineditor/bineditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bineditor/bineditor.cpp b/src/plugins/bineditor/bineditor.cpp index ff8cc3f1bf..1f287ff045 100644 --- a/src/plugins/bineditor/bineditor.cpp +++ b/src/plugins/bineditor/bineditor.cpp @@ -401,6 +401,7 @@ void BinEditorWidget::setSizes(quint64 startAddr, qint64 range, int blockSize) m_blockSize = blockSize; m_emptyBlock = QByteArray(blockSize, '\0'); + m_data.clear(); m_modifiedData.clear(); m_requests.clear(); @@ -1567,7 +1568,6 @@ void BinEditorWidget::setNewWindowRequestAllowed(bool c) void BinEditorWidget::updateContents() { m_oldData = m_data; - m_data.clear(); setSizes(baseAddress() + cursorPosition(), m_size, m_blockSize); } |