mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 10:25:36 -04:00
Rely on selectionModel() instead of currentIndex().
This commit is contained in:
parent
517f958616
commit
584ca6da18
1 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,8 @@ PartitionBarsView::drawSection( QPainter* painter, const QRect& rect_, int x, in
|
||||||
painter->drawRoundedRect( rect, radius, radius );
|
painter->drawRoundedRect( rect, radius, radius );
|
||||||
|
|
||||||
if ( index.isValid() &&
|
if ( index.isValid() &&
|
||||||
currentIndex() == index )
|
!selectionModel()->selectedIndexes().isEmpty() &&
|
||||||
|
selectionModel()->selectedIndexes().first() == index )
|
||||||
{
|
{
|
||||||
painter->setPen( QPen( borderColor, 1 ) );
|
painter->setPen( QPen( borderColor, 1 ) );
|
||||||
QColor highlightColor = QPalette().highlight().color();
|
QColor highlightColor = QPalette().highlight().color();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue