Add reset method to ReplacePage.

This commit is contained in:
Teo Mrnjavac 2015-04-29 18:15:46 +02:00
parent 5708b57116
commit 55b93091e6
2 changed files with 12 additions and 0 deletions

View File

@ -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()
{

View File

@ -39,6 +39,8 @@ public:
bool isNextEnabled() const;
void reset();
void applyChanges();
signals: