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 <christian.stenger@digia.com>
This commit is contained in:
David Schulz
2014-11-06 09:20:42 +01:00
parent e5a174a353
commit 4e475fb5e6

View File

@@ -247,6 +247,12 @@ public:
return true; 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) 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 QTC_ASSERT(!autoSave, return true); // bineditor does not support autosave - it would be a bit expensive