src: More fixes for release
* Show declname in java import error * Don't clear window stack when saving preferences * Fixed spacing in source group UI, status view and error view * Resize graph scene rect when widget is resized * Graph node centering respect no animation preference * Fixed undoing of view commands * Avoid scrollbar jump when restoring graph scroll position * Deactivate local symbols in code when clicking into empty space
This commit is contained in:
@@ -519,14 +519,21 @@ void QtCodeArea::mouseReleaseEvent(QMouseEvent* event)
|
||||
QTextCursor cursor = this->cursorForPosition(event->pos());
|
||||
std::vector<const Annotation*> annotations = getInteractiveAnnotationsForPosition(cursor.position());
|
||||
|
||||
if (m_navigator->hasErrors())
|
||||
if (annotations.size())
|
||||
{
|
||||
activateErrors(annotations);
|
||||
if (m_navigator->hasErrors())
|
||||
{
|
||||
activateErrors(annotations);
|
||||
}
|
||||
else
|
||||
{
|
||||
activateSourceLocations(annotations);
|
||||
activateLocalSymbols(annotations);
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (m_navigator->getActiveLocalSymbolIds().size())
|
||||
{
|
||||
activateSourceLocations(annotations);
|
||||
activateLocalSymbols(annotations);
|
||||
MessageActivateLocalSymbols(std::vector<Id>()).dispatch();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user