Trigger core reset when advancing to manual partitioning.
This commit is contained in:
parent
66d378d338
commit
86399ece26
@ -42,11 +42,12 @@ public:
|
|||||||
explicit PartitionPage( PartitionCoreModule* core, QWidget* parent = nullptr );
|
explicit PartitionPage( PartitionCoreModule* core, QWidget* parent = nullptr );
|
||||||
~PartitionPage();
|
~PartitionPage();
|
||||||
|
|
||||||
|
void onRevertClicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QScopedPointer< Ui_PartitionPage > m_ui;
|
QScopedPointer< Ui_PartitionPage > m_ui;
|
||||||
PartitionCoreModule* m_core;
|
PartitionCoreModule* m_core;
|
||||||
void updateButtons();
|
void updateButtons();
|
||||||
void onRevertClicked();
|
|
||||||
void onNewPartitionTableClicked();
|
void onNewPartitionTableClicked();
|
||||||
void onCreateClicked();
|
void onCreateClicked();
|
||||||
void onEditClicked();
|
void onEditClicked();
|
||||||
|
@ -264,7 +264,11 @@ PartitionViewStep::next()
|
|||||||
if ( m_choicePage == m_widget->currentWidget() )
|
if ( m_choicePage == m_widget->currentWidget() )
|
||||||
{
|
{
|
||||||
if ( m_choicePage->currentChoice() == ChoicePage::Manual )
|
if ( m_choicePage->currentChoice() == ChoicePage::Manual )
|
||||||
|
{
|
||||||
m_widget->setCurrentWidget( m_manualPartitionPage );
|
m_widget->setCurrentWidget( m_manualPartitionPage );
|
||||||
|
if ( m_core->isDirty() )
|
||||||
|
m_manualPartitionPage->onRevertClicked();
|
||||||
|
}
|
||||||
else if ( m_choicePage->currentChoice() == ChoicePage::Erase )
|
else if ( m_choicePage->currentChoice() == ChoicePage::Erase )
|
||||||
{
|
{
|
||||||
emit done();
|
emit done();
|
||||||
|
Loading…
Reference in New Issue
Block a user