fixup! cli: CommandAdd: Add verbose (-v)
This commit is contained in:
parent
d23dadbe49
commit
71084f7603
@ -111,10 +111,9 @@ int CommandAdd::handle(QStringList arguments)
|
|||||||
{
|
{
|
||||||
IndexResult indexResult = indexer->getResult();
|
IndexResult indexResult = indexer->getResult();
|
||||||
int newlyAdded = indexResult.results.count() - currentResult.results.count();
|
int newlyAdded = indexResult.results.count() - currentResult.results.count();
|
||||||
int newOffset = 0;
|
|
||||||
if(newlyAdded > 0)
|
if(newlyAdded > 0)
|
||||||
{
|
{
|
||||||
newOffset = indexResult.results.count() - newlyAdded;
|
int newOffset = indexResult.results.count() - newlyAdded;
|
||||||
for(int i = newOffset; i < indexResult.results.count(); i++)
|
for(int i = newOffset; i < indexResult.results.count(); i++)
|
||||||
{
|
{
|
||||||
auto result = indexResult.results.at(i);
|
auto result = indexResult.results.at(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user