fixed active item detection when rendering drag pixmap.

This commit is contained in:
Hugo Pereira Da Costa 2012-04-23 11:26:42 +02:00
parent be7573445a
commit 06820d7c77

View file

@ -1897,7 +1897,7 @@ namespace Oxygen
renderWindowBackground( &painter, geometry, widget(), widget()->palette() );
// darken background if item is inactive
const bool itemActive = !( itemValid && tabId(index) != currentTabId() );
const bool itemActive = (tabCount() <= 1) || !( itemValid && tabId(index) != currentTabId() );
if( !itemActive )
{