From 4e475fb5e6dd48b9b23357846f9e25c9bef50690 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 6 Nov 2014 09:20:42 +0100 Subject: [PATCH] BinEditor: Close removed files silently. The file cannot be saved as creator just holds a chunk of the file. Task-number: QTCREATORBUG-13014 Change-Id: I53c79f4ca5102673e66c5bd3f901c373ec8e0d90 Reviewed-by: Christian Stenger --- src/plugins/bineditor/bineditorplugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp index fdffcbffb74..63843f76ea4 100644 --- a/src/plugins/bineditor/bineditorplugin.cpp +++ b/src/plugins/bineditor/bineditorplugin.cpp @@ -247,6 +247,12 @@ public: return true; } + ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const + { + Q_UNUSED(state) + return type == TypeRemoved ? BehaviorSilent : BehaviorAsk; + } + bool save(QString *errorString, const QString &fn, bool autoSave) { QTC_ASSERT(!autoSave, return true); // bineditor does not support autosave - it would be a bit expensive