forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user