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:
parent
2fcc37dfb6
commit
0bb267830d
|
@ -104,10 +104,12 @@ void PartResizerWidget::init(Device& d, Partition& p, qint64 minFirst, qint64 ma
|
||||||
opt.rect = pixmap.rect().adjusted(0, 2, 0, -2);
|
opt.rect = pixmap.rect().adjusted(0, 2, 0, -2);
|
||||||
style()->drawControl(QStyle::CE_Splitter, &opt, &p, this);
|
style()->drawControl(QStyle::CE_Splitter, &opt, &p, this);
|
||||||
|
|
||||||
leftHandle().setPixmap(pixmap);
|
if (moveAllowed())
|
||||||
|
leftHandle().setPixmap(pixmap);
|
||||||
rightHandle().setPixmap(pixmap);
|
rightHandle().setPixmap(pixmap);
|
||||||
|
|
||||||
leftHandle().setFixedSize(handleWidth(), handleHeight());
|
if (moveAllowed())
|
||||||
|
leftHandle().setFixedSize(handleWidth(), handleHeight());
|
||||||
rightHandle().setFixedSize(handleWidth(), handleHeight());
|
rightHandle().setFixedSize(handleWidth(), handleHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue