{
QDateTime dt;
clientCombo->addItems(m_console->client_list);
+ clientCombo->setCurrentIndex(clientCombo->findText(m_client, Qt::MatchExactly));
replaceCombo->addItems(QStringList() << "never" << "always" << "ifnewer" << "ifolder");
replaceCombo->setCurrentIndex(replaceCombo->findText("never", Qt::MatchExactly));
dateTimeEdit->setDisplayFormat(mainWin->m_dtformat);
}
jobOption += "\"";
QString cmd = QString("restore");
- cmd += " client=\"" + m_client + "\""
- + jobOption +
- " file=\"?" + m_tempTable + "\" yes";
+ cmd += jobOption +
+ " file=\"?" + m_tempTable + "\" yes"
+ " replace=\"" + replaceCombo->currentText() + "\""
+ " when=\"" + dateTimeEdit->dateTime().toString(mainWin->m_dtformat) + "\""
+ " restoreclient=\"" + clientCombo->currentText() + "\"";
if (mainWin->m_commandDebug)
Pmsg1(000, "preRestore command \'%s\'\n", cmd.toUtf8().data());
consoleCommand(cmd);
closeStackPage();
/* QString cmd(".mod");
- cmd += " restoreclient=\"" + clientCombo->currentText() + "\"";
- cmd += " replace=\"" + replaceCombo->currentText() + "\"";
- cmd += " when=\"" + dateTimeEdit->dateTime().toString(mainWin->m_dtformat) + "\"";
cmd += " bootstrap=\"" + bootstrap->text() + "\"";
cmd += " where=\"" + where->text() + "\"";
QString pri;