Timeline: updateCursorPosition() also if file is unknown

We still want to synchronize the views in this case.

Change-Id: Ie65bec76b194bb9ac6027f16cbb770787a78d871
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-02-19 12:22:02 +01:00
parent 7b36dfd99b
commit b643dc9599

View File

@@ -239,8 +239,7 @@ Rectangle {
var newTypeId = model.typeId(selectedItem);
if (newTypeId !== typeId) {
typeId = newTypeId;
if (eventLocation.file !== undefined)
root.updateCursorPosition();
root.updateCursorPosition();
}
} else {
rangeDetails.hide();