KDevelop (running session) stuck in loop after opening a directory

René J.V. Bertin rjvbertin at gmail.com
Tue Feb 19 15:30:53 GMT 2019


Got it!

Strange that you can't reproduce it, because it's a classic example of a dead loop:

```
        QUrl oldTest = testAt.adjusted(QUrl::RemoveFilename);
        if(oldTest == testAt)
            break;
```

QUrl::adjusted() returns the adjusted, not the old version and doesn't alter its instance.

This should be something like:

```
        QUrl oldTest = testAt;
        testAt = testAt.adjusted(QUrl::RemoveFilename);
        if(oldTest == testAt)
            break;
```

R


More information about the KDevelop-devel mailing list