git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8775
91ce42f0-d328-0410-95d8-
f526ca767f89
void Pages::consoleCommand(QString &command)
{
int conn;
+ bool donotify = false;
if (m_console->availableDirComm(conn)) {
+ if (m_console->is_notify_enabled(conn)) {
+ donotify = true;
+ m_console->notify(conn, false);
+ }
consoleCommand(command, conn);
+ if (donotify) { m_console->notify(conn, true); }
}
}
void Pages::consoleCommand(QString &command, int conn)
console->displayToPrompt(conn);
switch (msgBox.exec()) {
case QMessageBox::Yes:
- console->write_dir("yes");
+ console->write_dir(conn, "yes");
break;
case QMessageBox::No:
- console->write_dir("no");
+ console->write_dir(conn, "no");
break;
}
console->displayToPrompt(conn);