fixed active item detection when rendering drag pixmap.
parent
be7573445a
commit
06820d7c77
|
@ -1897,7 +1897,7 @@ namespace Oxygen
|
||||||
renderWindowBackground( &painter, geometry, widget(), widget()->palette() );
|
renderWindowBackground( &painter, geometry, widget(), widget()->palette() );
|
||||||
|
|
||||||
// darken background if item is inactive
|
// darken background if item is inactive
|
||||||
const bool itemActive = !( itemValid && tabId(index) != currentTabId() );
|
const bool itemActive = (tabCount() <= 1) || !( itemValid && tabId(index) != currentTabId() );
|
||||||
if( !itemActive )
|
if( !itemActive )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue