forked from qt-creator/qt-creator
modified selection to accept items without id's
also cleaned up old stuff
This commit is contained in:
committed by
Olivier Goffart
parent
42abd8b15c
commit
8936292dc2
@@ -94,7 +94,7 @@ void QmlJSLiveTextPreview::changeSelectedElements(QList<int> offsets, const QStr
|
||||
if (offset >= 0) {
|
||||
QList<QDeclarativeDebugObjectReference> list = objectReferencesForOffset(offset);
|
||||
|
||||
if (!containsReference) {
|
||||
if (!containsReference && objectRefUnderCursor.debugId() != -1) {
|
||||
foreach(const QDeclarativeDebugObjectReference &ref, list) {
|
||||
if (ref.debugId() == objectRefUnderCursor.debugId()) {
|
||||
containsReference = true;
|
||||
|
||||
Reference in New Issue
Block a user