src: Fixes for release
* clear references count when clearing code view * fixed scrolling to character in overview lists * fixed aggregation activation shown in history menu * fixed same snippet being added twice * Sourcetrail [Trial] as window title * fixed undoing trail expand will always reactivate symbol
This commit is contained in:
@@ -131,6 +131,16 @@ std::string QtCodeFile::getFileName() const
|
||||
|
||||
QtCodeSnippet* QtCodeFile::addCodeSnippet(const CodeSnippetParams& params)
|
||||
{
|
||||
for (std::shared_ptr<QtCodeSnippet> snippet : m_snippets)
|
||||
{
|
||||
if (snippet->getStartLineNumber() == params.startLineNumber &&
|
||||
snippet->getEndLineNumber() == params.endLineNumber)
|
||||
{
|
||||
return snippet.get();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
std::shared_ptr<QtCodeSnippet> snippet(new QtCodeSnippet(params, m_navigator, this));
|
||||
|
||||
if (params.reduced)
|
||||
|
||||
@@ -229,6 +229,8 @@ void QtCodeNavigator::clear()
|
||||
{
|
||||
clearCodeSnippets();
|
||||
clearCaches();
|
||||
|
||||
updateRefLabel();
|
||||
}
|
||||
|
||||
void QtCodeNavigator::clearCodeSnippets()
|
||||
|
||||
@@ -327,7 +327,7 @@ void QtGraphView::pressedCharacterKey(QChar c)
|
||||
Vec2i pos = node->getPosition();
|
||||
Vec2i size = node->getSize();
|
||||
|
||||
view->ensureVisibleAnimated(QRectF(pos.x, pos.y, size.x, size.y + view->height() / 3 * 2), 100, 100);
|
||||
view->ensureVisibleAnimated(QRectF(pos.x, pos.y, size.x, size.y + getViewSize().y / 3 * 2), 100, 100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user