Commit 4e475fb5 authored by David Schulz's avatar David Schulz

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: default avatarChristian Stenger <christian.stenger@digia.com>
parent e5a174a3
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment