fixup! cli: CommandAdd: Add verbose (-v)

This commit is contained in:
Albert S. 2023-05-01 23:57:49 +02:00
parent d23dadbe49
commit 71084f7603

View File

@ -111,10 +111,9 @@ int CommandAdd::handle(QStringList arguments)
{
IndexResult indexResult = indexer->getResult();
int newlyAdded = indexResult.results.count() - currentResult.results.count();
int newOffset = 0;
if(newlyAdded > 0)
{
newOffset = indexResult.results.count() - newlyAdded;
int newOffset = indexResult.results.count() - newlyAdded;
for(int i = newOffset; i < indexResult.results.count(); i++)
{
auto result = indexResult.results.at(i);