BinEditor: Do not warn about empty file for memory editor

Change-Id: I124bf33a2b4ea4f81e8a6af21c1ccda0e0901ad2
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Orgad Shaneh
2012-12-20 22:50:45 +02:00
committed by hjk
parent 06de43a2f9
commit bfd609185f

View File

@@ -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;