dhb
====================================================
-Prevent the ablility of a user to close the original joblist page.
-
Further testing of restore with .mod
-Test left pane of restore with 2 windows drives in one backup job.
-
User preferences. With log to stdout options.
Have settings for defaults of limits on joblist
+Add fileset to joblist.
+
+joblist cancel a running job.
+
+Set default for replace in run restore job to "always"??????
+
Add context sensitive options for most commands
status dir on page select director item
All items with jobid= that I thought could work from joblist are done.
Option in joblist like with restore from jobid but restore populating timestamp
of the selected job.
+Get the 5 second bring to bottom of console to stop
+
Resolve issue of connection during restore selection. Could go with preempt of
connections. (Kern is to work on)
bRestore add code to get working.
+May be in brestore, find a file by name, find a directory by name
+
===========================================================
NOT SURE
===========================================================
============================================================
DONE:
============================================================
+Test left pane of restore with 2 windows drives in one backup job.
+ Yup, id didn't work, now it does.
+
Purging not working from console or from context sensitive.
This was a confusion with the restore command. Now resolved.
/* Iterate through fields in the record */
foreach (field, fieldlist) {
field = field.trimmed(); /* strip leading & trailing spaces */
- filesetItem->setData(index+1, Qt::UserRole, 1);
+ filesetItem->setData(index, Qt::UserRole, 1);
/* Put media fields under the pool tree item */
- filesetItem->setData(index+1, Qt::UserRole, 1);
- filesetItem->setText(index+1, field);
+ filesetItem->setData(index, Qt::UserRole, 1);
+ filesetItem->setText(index, field);
index++;
}
}
" From Job, Client, FileSet"
" WHERE Job.FileSetId=FileSet.FileSetId AND Job.ClientId=Client.ClientId"
" AND JobId=\'" + jobId + "\'";
- printf("query = %s\n", query.toUtf8().data());
+ //printf("query = %s\n", query.toUtf8().data());
QStringList results;
if (m_console->sql_cmd(query, results)) {
QString field;
QString newdir = newdirr;
QString fullpath = m_cwd + newdirr;
QRegExp regex("^/[a-z]:/$");
- bool ok=true;
+ bool ok = true;
+ bool windrive = false;
//printf("In addDirectory cwd \"%s\" newdir \"%s\"\n", m_cwd.toUtf8().data(),
//newdir.toUtf8().data());
if (regex.indexIn(fullpath,0) == 0) {
/* this is a windows drive */
- //printf("Need to do windows c:/\n");
+ //printf("Need to do windows \"letter\":/\n");
fullpath.replace(0,1,"");
+ windrive = true;
}
/* is it already existent ?? */
if (!m_dirPaths.contains(fullpath)) {
QTreeWidgetItem *item = NULL;
- if (m_dirPaths.empty()) {
+ if (windrive) {
/* this is the base widget */
item = new QTreeWidgetItem(directoryWidget);
item->setText(0, fullpath.toUtf8().data());
item->setText(0, newdir.toUtf8().data());
directoryWidget->expandItem(parent);
} else {
- ok=false;
+ ok = false;
//printf("In else of if parent cwd \"%s\" newdir \"%s\"\n",
//m_cwd.toUtf8().data() ,newdir.toUtf8().data());
}
void runCmdPage::cancelButtonPushed()
{
+ m_console->displayToPrompt();
+ m_console->write_dir(".");
m_console->displayToPrompt();
mainWin->set_status(" Canceled");
this->hide();