From 2c5d33839b5150b25d298d3d623df4a0b02a1cf3 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 16 Feb 2016 14:14:35 +0100 Subject: [PATCH] Maybe we're restoring too much. --- src/modules/partition/gui/PartitionBarsView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/partition/gui/PartitionBarsView.cpp b/src/modules/partition/gui/PartitionBarsView.cpp index 5919cd28e..d9cdd25e8 100644 --- a/src/modules/partition/gui/PartitionBarsView.cpp +++ b/src/modules/partition/gui/PartitionBarsView.cpp @@ -135,7 +135,6 @@ PartitionBarsView::drawSection( QPainter* painter, const QRect& rect_, int x, in rect.adjust( 0, 0, -1, -1 ); - QGuiApplication::restoreOverrideCursor(); if ( selectionMode() != QAbstractItemView::NoSelection && // no hover without selection m_hoveredIndex.isValid() && index == m_hoveredIndex ) @@ -151,6 +150,7 @@ PartitionBarsView::drawSection( QPainter* painter, const QRect& rect_, int x, in else { painter->setBrush( color ); + QGuiApplication::restoreOverrideCursor(); } QColor borderColor = color.darker();