diff options
Diffstat (limited to 'kdat/KDatMainWindow.cpp')
-rw-r--r-- | kdat/KDatMainWindow.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kdat/KDatMainWindow.cpp b/kdat/KDatMainWindow.cpp index d3cf265..3bc2b6d 100644 --- a/kdat/KDatMainWindow.cpp +++ b/kdat/KDatMainWindow.cpp @@ -578,10 +578,10 @@ void KDatMainWindow::doVerify( bool restore ) if ( !archiveNode ) { if ( ((Node*)_tree->getCurrentItem())->isType( Node::RangeableNodeType ) ) { rangeableNode = (RangeableNode*)_tree->getCurrentItem(); - Node* tqparent = rangeableNode; - for ( ; !tqparent->isType( Node::MountedArchiveNodeType ); tqparent = (Node*)tqparent->getParent() ); - assert( tqparent ); - archive = ((MountedArchiveNode*)tqparent)->getArchive(); + Node* parent = rangeableNode; + for ( ; !parent->isType( Node::MountedArchiveNodeType ); parent = (Node*)parent->getParent() ); + assert( parent ); + archive = ((MountedArchiveNode*)parent)->getArchive(); } } @@ -1263,10 +1263,10 @@ void KDatMainWindow::configureUI( Tape* tape ) // even if sel==NULL when a child is selected (see loop above). if( sel != (Node *)0x0 ) { - for ( Node* tqparent = (Node*)sel->getParent(); - ( tqparent ) && ( tqparent->getParent() ); - tqparent = (Node*)tqparent->getParent() ) { - if ( tqparent->isType( Node::TapeNodeType ) ) { + for ( Node* parent = (Node*)sel->getParent(); + ( parent ) && ( parent->getParent() ); + parent = (Node*)parent->getParent() ) { + if ( parent->isType( Node::TapeNodeType ) ) { canRestore = FALSE; } } |