forked from qt-creator/qt-creator
Utils: Fix connection
Change-Id: I1c17525be7326f836359ddcb911ae048f733a56e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2508,7 +2508,7 @@ void FilePathListAspect::addToLayout(LayoutItem &parent)
|
|||||||
connect(editor, &PathListEditor::changed, this, [this, editor] {
|
connect(editor, &PathListEditor::changed, this, [this, editor] {
|
||||||
d->undoable.set(undoStack(), editor->pathList());
|
d->undoable.set(undoStack(), editor->pathList());
|
||||||
});
|
});
|
||||||
connect(&d->undoable.m_signal, &UndoSignaller::changed, this, [this, editor] {
|
connect(&d->undoable.m_signal, &UndoSignaller::changed, editor, [this, editor] {
|
||||||
if (editor->pathList() != d->undoable.get())
|
if (editor->pathList() != d->undoable.get())
|
||||||
editor->setPathList(d->undoable.get());
|
editor->setPathList(d->undoable.get());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user