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:
Eberhard Graether
2017-06-08 00:35:31 +02:00
parent 610dbf5bfb
commit 3e62367af0
13 changed files with 65 additions and 63 deletions
+12 -5
View File
@@ -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();
}
}
}