Commit 1a985148 authored by ck's avatar ck

BinEditor: Fix file name not being displayed.

parent 99272496
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment