forked from qt-creator/qt-creator
Git: InstantBlame: Retrigger on more settings changed
When one of the settings "ignore space changes" or "ignore line moves" are changed, retrigger the blame. Change-Id: I46a8cf738cf7ece2c35c650ab2c93ee531aaae14 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
d0cf207a0c
commit
a3177a4583
@@ -190,6 +190,14 @@ void InstantBlame::setup()
|
||||
setupBlameForEditor(EditorManager::currentEditor());
|
||||
});
|
||||
|
||||
connect(&settings().instantBlameIgnoreSpaceChanges, &BaseAspect::changed, this, [setupBlameForEditor] {
|
||||
setupBlameForEditor(EditorManager::currentEditor());
|
||||
});
|
||||
|
||||
connect(&settings().instantBlameIgnoreLineMoves, &BaseAspect::changed, this, [setupBlameForEditor] {
|
||||
setupBlameForEditor(EditorManager::currentEditor());
|
||||
});
|
||||
|
||||
connect(EditorManager::instance(), &EditorManager::currentEditorChanged,
|
||||
this, setupBlameForEditor);
|
||||
connect(EditorManager::instance(), &EditorManager::documentClosed,
|
||||
|
Reference in New Issue
Block a user