From 18833bed2403e80d5b97bacd6ffc3cb0f4adb852 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 21 Aug 2018 13:42:41 +0200 Subject: Fix reload behavior of binary editor It should silenty reload internally triggered changes and permission changes. Broke in 4e475fb5e6dd48b9b23357846f9e25c9bef50690 Change-Id: I900adac72f51ea5e070c9c4efb59c09296526c42 Reviewed-by: David Schulz --- src/plugins/bineditor/bineditorplugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp index d8ca404f87..dbc96f4d60 100644 --- a/src/plugins/bineditor/bineditorplugin.cpp +++ b/src/plugins/bineditor/bineditorplugin.cpp @@ -228,8 +228,7 @@ public: ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const override { - Q_UNUSED(state) - return type == TypeRemoved ? BehaviorSilent : BehaviorAsk; + return type == TypeRemoved ? BehaviorSilent : IDocument::reloadBehavior(state, type); } bool save(QString *errorString, const QString &fn, bool autoSave) override -- cgit v1.2.3