QString cmd("delete job jobid=");
cmd += m_selectedJobs;
- consoleCommand(cmd);
+ consoleCommand(cmd, false);
+ populateTable();
}
void JobList::consolePurgeFiles()
{
foreach(QString job, m_selectedJobsList) {
QString cmd("purge files jobid=");
cmd += job;
- consoleCommand(cmd);
+ consoleCommand(cmd, false);
}
+ populateTable();
}
/*
* console to the front of the stack
*/
void Pages::consoleCommand(QString &command)
+{
+ consoleCommand(command, true);
+}
+void Pages::consoleCommand(QString &command, bool setCurrent)
{
int conn;
bool donotify = false;
donotify = true;
m_console->notify(conn, false);
}
- consoleCommand(command, conn);
+ consoleCommand(command, conn, setCurrent);
if (donotify) { m_console->notify(conn, true); }
}
}
void Pages::consoleCommand(QString &command, int conn)
+{
+ consoleCommand(command, conn, true);
+}
+void Pages::consoleCommand(QString &command, int conn, bool setCurrent)
{
/* Bring this director's console to the front of the stack */
- setConsoleCurrent();
+ if (setCurrent) { setConsoleCurrent(); }
QString displayhtml("<font color=\"blue\">");
displayhtml += command + "</font>\n";
m_console->display_html(displayhtml);
void setTreeWidgetItemDockColor();
void consoleCommand(QString &);
void consoleCommand(QString &, int conn);
+ void consoleCommand(QString &, bool setCurrent);
+ void consoleCommand(QString &, int conn, bool setCurrent);
QString &name() { return m_name; };
void getVolumeList(QStringList &);
void getStatusList(QStringList &);