refs #906, wizard improvements

* fixed text
* only init copy wizard when using "back" button
This commit is contained in:
Klaus Basan
2017-03-21 16:32:50 +01:00
committed by Mathew Sutcliffe
parent 2b50fe1fdb
commit 9ee0b173c6
2 changed files with 3 additions and 4 deletions

View File

@@ -63,16 +63,15 @@ namespace BlackGui
const bool skipped = m_skipped;
m_previousId = id; // update
m_skipped = false; // reset
Q_UNUSED(backward);
Q_UNUSED(skipped);
const QWizardPage *page = this->currentPage();
if (page == ui->wp_CopyCaches)
if (backward && page == ui->wp_CopyCaches)
{
ui->comp_CopyCaches->setCacheMode();
ui->comp_CopyCaches->initCurrentDirectories(true);
}
else if (page == ui->wp_CopySettings)
else if (backward && page == ui->wp_CopySettings)
{
ui->comp_CopySettings->setSettingsMode();
ui->comp_CopySettings->initCurrentDirectories(true);