Commit bfd60918 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

BinEditor: Do not warn about empty file for memory editor

Change-Id: I124bf33a2b4ea4f81e8a6af21c1ccda0e0901ad2
Reviewed-by: default avatarhjk <>
parent 06de43a2
......@@ -222,7 +222,7 @@ public:
bool open(QString *errorString, const QString &fileName, quint64 offset = 0) {
QFile file(fileName);
quint64 size = static_cast<quint64>(file.size());
if (size == 0) {
if (size == 0 && !fileName.isEmpty()) {
QString msg = tr("The Binary Editor cannot open empty files.");
if (errorString)
*errorString = msg;
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