Changeset 13898


Ignore:
Timestamp:
Jan 30, 2013, 12:23:32 AM (8 years ago)
Author:
jordan
Message:

silence unnecessary warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/file-tree.cc

    r13894 r13898  
    464464  QModelIndex i;
    465465
    466   if (!hasIndex (row, column, parent))
    467     {
    468       qWarning ("I don't have this index");
    469     }
    470   else
     466  if (hasIndex (row, column, parent))
    471467    {
    472468      FileTreeItem * parentItem;
    473469
    474       if(!parent.isValid())
     470      if (!parent.isValid ())
    475471        parentItem = myRootItem;
    476472      else
    477473        parentItem = itemFromIndex (parent);
    478474
    479       FileTreeItem * childItem = parentItem->child(row);
     475      FileTreeItem * childItem = parentItem->child (row);
    480476
    481477      if (childItem)
    482         i = createIndex(row, column, childItem);
    483     }
    484 
    485     return i;
     478        i = createIndex (row, column, childItem);
     479    }
     480
     481  return i;
    486482}
    487483
Note: See TracChangeset for help on using the changeset viewer.