Try to work around spinbox dirty status change on apply issue.
This commit is contained in:
parent
5450a18c85
commit
9c90d54eda
@ -114,6 +114,14 @@ EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device, Partit
|
||||
EditExistingPartitionDialog::~EditExistingPartitionDialog()
|
||||
{}
|
||||
|
||||
void
|
||||
EditExistingPartitionDialog::done( int r )
|
||||
{
|
||||
// Avoid emitting editingFinished when losing focus
|
||||
m_ui->sizeSpinBox->blockSignals( true );
|
||||
QDialog::done( r );
|
||||
}
|
||||
|
||||
|
||||
PartitionTable::Flags
|
||||
EditExistingPartitionDialog::newFlags() const
|
||||
|
@ -43,6 +43,8 @@ public:
|
||||
EditExistingPartitionDialog( Device* device, Partition* partition, QWidget* parentWidget = nullptr );
|
||||
~EditExistingPartitionDialog();
|
||||
|
||||
void done( int r ) override;
|
||||
|
||||
void applyChanges( PartitionCoreModule* module );
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user