Skip to content
Browse files

Fixed a regression introduced by fae0674

  • Loading branch information...
1 parent f5bcc6c commit 41d919a4f059d51ec98d3d12548ef01c492a1ca5 corwinn committed Dec 9, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 nifmodel.cpp
View
7 nifmodel.cpp
@@ -1019,6 +1019,10 @@ QVariant NifModel::data( const QModelIndex & idx, int role ) const
int column = index.column();
+ bool ndr = role == NifSkopeDisplayRole;
+ if (role == NifSkopeDisplayRole)
+ role = Qt::DisplayRole;
+
if ( column == ValueCol && item->parent() == root && item->type() == "NiBlock" )
{
QModelIndex buddy;
@@ -1057,9 +1061,6 @@ QVariant NifModel::data( const QModelIndex & idx, int role ) const
}
}
- bool ndr = role == NifSkopeDisplayRole;
- if (role == NifSkopeDisplayRole)
- role = Qt::DisplayRole;
switch ( role )
{
case Qt::DisplayRole:

0 comments on commit 41d919a

Please sign in to comment.
Something went wrong with that request. Please try again.