From 1a985148340ff3b29c752036857446452cf0907f Mon Sep 17 00:00:00 2001 From: ck <qt-info@nokia.com> Date: Thu, 22 Jul 2010 16:37:43 +0200 Subject: [PATCH] BinEditor: Fix file name not being displayed. --- src/plugins/bineditor/bineditorplugin.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp index cca1c9c1e4a..277a5041fde 100644 --- a/src/plugins/bineditor/bineditorplugin.cpp +++ b/src/plugins/bineditor/bineditorplugin.cpp @@ -210,13 +210,12 @@ public: && file.open(QIODevice::ReadOnly)) { m_fileName = fileName; qint64 maxRange = 64 * 1024 * 1024; - if (file.size() <= maxRange) { + if (file.size() <= maxRange) m_editor->setData(file.readAll()); - } else { + else m_editor->setLazyData(offset, maxRange); - m_editor->editorInterface()-> - setDisplayName(QFileInfo(fileName).fileName()); - } + m_editor->editorInterface()-> + setDisplayName(QFileInfo(fileName).fileName()); file.close(); return true; } -- GitLab