vis = it.current()->widget() && it.current()->widget()->isVisibleTo( myCont );
QMainWindow* mw = myCont->mainWindow();
- if ( mw && myEmpty != vis )
+ if ( mw && myEmpty == vis )
{
- myEmpty = vis;
- if ( myEmpty )
+ myEmpty = !vis;
+ if ( !myEmpty )
mw->setAppropriate( myCont, myState );
else
{
}
}
- vis = myEmpty && myVisible;
+ vis = !myEmpty && myVisible;
if ( vis != myCont->isVisibleTo( myCont->parentWidget() ) )
vis ? showContainer() : hideContainer();
}
}
QMainWindow* mw = myCont->mainWindow();
- if ( mw && myEmpty != vis )
+ if ( mw && myEmpty == vis )
{
- myEmpty = vis;
- if ( myEmpty )
+ myEmpty = !vis;
+ if ( !myEmpty )
mw->setAppropriate( myCont, myState );
else
{
}
}
- vis = myEmpty && myVisible;
+ vis = !myEmpty && myVisible;
if ( vis != myCont->isVisibleTo( myCont->parentWidget() ) )
vis ? showContainer() : hideContainer();
}