aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-08-21 13:42:41 +0200
committerEike Ziller <eike.ziller@qt.io>2018-08-22 06:40:36 +0000
commit18833bed2403e80d5b97bacd6ffc3cb0f4adb852 (patch)
tree8d9fda1822ab0d65ca4c3d219de77e9f1287e7a8
parent2486e6106870d64e486c600c0fb96594ae771e12 (diff)
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 <david.schulz@qt.io>
-rw-r--r--src/plugins/bineditor/bineditorplugin.cpp3
1 files changed, 1 insertions, 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