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
|
void
|
||||||
ReplacePage::applyChanges()
|
ReplacePage::applyChanges()
|
||||||
{
|
{
|
||||||
|
@ -39,6 +39,8 @@ public:
|
|||||||
|
|
||||||
bool isNextEnabled() const;
|
bool isNextEnabled() const;
|
||||||
|
|
||||||
|
void reset();
|
||||||
|
|
||||||
void applyChanges();
|
void applyChanges();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
Loading…
Reference in New Issue
Block a user