Add reset method to ReplacePage.
This commit is contained in:
parent
5708b57116
commit
55b93091e6
@ -72,6 +72,16 @@ ReplacePage::isNextEnabled() const
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ReplacePage::reset()
|
||||
{
|
||||
int oldDeviceIndex = m_ui->deviceComboBox->currentIndex();
|
||||
m_core->revert();
|
||||
m_ui->deviceComboBox->setCurrentIndex( oldDeviceIndex );
|
||||
updateFromCurrentDevice();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ReplacePage::applyChanges()
|
||||
{
|
||||
|
@ -39,6 +39,8 @@ public:
|
||||
|
||||
bool isNextEnabled() const;
|
||||
|
||||
void reset();
|
||||
|
||||
void applyChanges();
|
||||
|
||||
signals:
|
||||
|
Loading…
Reference in New Issue
Block a user