src: miscellaneous bug fixes for upcoming release
* only randomize parsing order of source files for multithreaded indexing * fixed overview not displayed when switching projects due to MessageScrollCode being dispatched * avoid adding duplicate TokenLocations that causes highlighting to break in QtCodeArea * clear all controllers when switching project * maximize unindexed file when clicking title instead of activating it
This commit is contained in:
@@ -103,8 +103,12 @@ void CodeController::handleMessage(MessageActivateTokens* message)
|
||||
}
|
||||
|
||||
std::vector<Id> activeTokenIds = message->tokenIds;
|
||||
Id declarationId = 0; // 0 means that no token is found.
|
||||
if (!activeTokenIds.size())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Id declarationId = 0; // 0 means that no token is found.
|
||||
if (!message->isAggregation)
|
||||
{
|
||||
activeTokenIds = m_storageAccess->getActiveTokenIdsForId(activeTokenIds[0], &declarationId);
|
||||
@@ -306,6 +310,13 @@ CodeView* CodeController::getView()
|
||||
return Controller::getView<CodeView>();
|
||||
}
|
||||
|
||||
void CodeController::clear()
|
||||
{
|
||||
getView()->clear();
|
||||
|
||||
m_collection.reset();
|
||||
}
|
||||
|
||||
void CodeController::showContents(MessageBase* message)
|
||||
{
|
||||
if (!message->isReplayed())
|
||||
|
||||
Reference in New Issue
Block a user