Fix reload behavior of binary editor

It should silenty reload internally triggered changes and permission
changes.

Broke in 4e475fb5e6

Change-Id: I900adac72f51ea5e070c9c4efb59c09296526c42
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2018-08-21 13:42:41 +02:00
parent 2486e61068
commit 18833bed24

View File

@@ -228,8 +228,7 @@ public:
ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const override ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const override
{ {
Q_UNUSED(state) return type == TypeRemoved ? BehaviorSilent : IDocument::reloadBehavior(state, type);
return type == TypeRemoved ? BehaviorSilent : BehaviorAsk;
} }
bool save(QString *errorString, const QString &fn, bool autoSave) override bool save(QString *errorString, const QString &fn, bool autoSave) override