Fix a bug (that could result in data loss) where left handle of partition resize widget was not actually disabled.

This commit is contained in:
Andrius Štikonas 2016-12-31 12:34:38 +02:00
parent 2fcc37dfb6
commit 0bb267830d
1 changed files with 4 additions and 2 deletions

View File

@ -104,10 +104,12 @@ void PartResizerWidget::init(Device& d, Partition& p, qint64 minFirst, qint64 ma
opt.rect = pixmap.rect().adjusted(0, 2, 0, -2);
style()->drawControl(QStyle::CE_Splitter, &opt, &p, this);
leftHandle().setPixmap(pixmap);
if (moveAllowed())
leftHandle().setPixmap(pixmap);
rightHandle().setPixmap(pixmap);
leftHandle().setFixedSize(handleWidth(), handleHeight());
if (moveAllowed())
leftHandle().setFixedSize(handleWidth(), handleHeight());
rightHandle().setFixedSize(handleWidth(), handleHeight());
}