#endif
init_stack_dump();
- my_name_is(argc, argv, "gnome-console");
+ my_name_is(argc, argv, "bat");
init_msg(NULL, NULL);
working_directory = "/tmp";
this->hide();
cmd = QString("restore ");
- if (selectFilesRadio->isChecked()) {
- cmd += "select ";
- } else {
- cmd += "all done ";
- }
cmd += "fileset=\"" + filesetCombo->currentText() + "\" ";
cmd += "client=\"" + clientCombo->currentText() + "\" ";
if (selectJobsRadio->isChecked()) {
} else {
cmd += "jobid=\"" + jobIdEdit->text() + "\"";
}
+ if (selectFilesRadio->isChecked()) {
+ cmd += " select";
+ } else {
+ cmd += " all done";
+ }
/* ***FIXME*** */
printf("preRestore command \'%s\'\n", cmd.toUtf8().data());
}
return true;
}
-
m_cwd = m_console->msg();
Dmsg2(100, "cwd=%s msg=%s\n", m_cwd.toUtf8().data(), m_console->msg());
} else {
- Dmsg1(000, "stat=%d\n", stat);
+ Dmsg1(000, "Something went wrong read stat=%d\n", stat);
QMessageBox::critical(this, "Error", ".pwd command failed", QMessageBox::Ok);
- Dmsg1(000, "stat=%d\n", stat);
}
m_console->discardToPrompt();
return m_cwd.toUtf8().data();