modified selection to accept items without id's

also cleaned up old stuff
This commit is contained in:
Lasse Holmstedt
2010-07-13 16:13:26 +02:00
committed by Olivier Goffart
parent 42abd8b15c
commit 8936292dc2
2 changed files with 22 additions and 9 deletions

View File

@@ -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;