summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2010-07-22 16:37:43 +0200
committerck <qt-info@nokia.com>2010-07-22 16:37:43 +0200
commit1a985148340ff3b29c752036857446452cf0907f (patch)
tree24727786362f348668af1d8c0cbf07175b995205 /src
parent9927249665aaf6164352705ac7ef80fa88e60426 (diff)
downloadqt-creator-1a985148340ff3b29c752036857446452cf0907f.tar.gz
BinEditor: Fix file name not being displayed.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/bineditor/bineditorplugin.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp
index cca1c9c1e4..277a5041fd 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;
}