Code style and fixes to comments

Contributes to issue CURA-5785.
This commit is contained in:
Ghostkeeper 2018-11-16 13:26:03 +01:00
parent 514fc13045
commit e087db7c2e
No known key found for this signature in database
GPG Key ID: 86BEF881AE2CF276

View File

@ -54,13 +54,13 @@ Item
{
for (var i = 0; i < viewModel.rowCount(); i++)
{
if(viewModel.getItem(i).active)
if (viewModel.getItem(i).active)
{
return viewModel.getItem(i)
}
}
// Nothing was active, so just return the first one (the list is sorted by priority, so the most
// important one sshould be returned)
// important one should be returned)
return viewModel.getItem(0)
}