mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
* Prevent crash in ViewHeader.
This commit is contained in:
parent
97a3d6fcd3
commit
cd2fd37f84
@ -88,6 +88,8 @@ ViewHeader::checkState()
|
||||
{
|
||||
if ( isSectionHidden( i ) )
|
||||
continue;
|
||||
if ( i >= m_columnWeights.count() )
|
||||
break;
|
||||
|
||||
double nw = (double)m_parent->width() * m_columnWeights.at( i );
|
||||
resizeSection( i, qMax( minimumSectionSize(), int( nw - 0.5 ) ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user