Adapt to kpmcore createWithLabel changes.
This commit is contained in:
parent
4b68a0cba0
commit
58281d6855
|
@ -272,7 +272,10 @@ void NewDialog::onLVNameChanged(const QString& newName)
|
|||
void NewDialog::updateHideAndShow()
|
||||
{
|
||||
// this is mostly copy'n'pasted from PartPropsDialog::updateHideAndShow()
|
||||
if (partition().roles().has(PartitionRole::Extended) || partition().fileSystem().supportSetLabel() == FileSystem::cmdSupportNone) {
|
||||
if (partition().roles().has(PartitionRole::Extended) ||
|
||||
(partition().fileSystem().supportSetLabel() == FileSystem::cmdSupportNone &&
|
||||
partition().fileSystem().supportCreateWithLabel() == FileSystem::cmdSupportNone) )
|
||||
{
|
||||
dialogWidget().label().setReadOnly(true);
|
||||
dialogWidget().noSetLabel().setVisible(true);
|
||||
dialogWidget().noSetLabel().setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include <util/capacity.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
||||
#include <QFrame>
|
||||
|
@ -234,7 +236,7 @@ void SizeDialogBase::onSpinCapacityChanged(double newCapacity)
|
|||
}
|
||||
}
|
||||
|
||||
tmp = qMin(delta, partition().firstSector() - minimumFirstSector());
|
||||
tmp = std::min(delta, partition().firstSector() - minimumFirstSector());
|
||||
delta -= tmp;
|
||||
|
||||
if (tmp != 0) {
|
||||
|
|
Loading…
Reference in New Issue