/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2009 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
*/
/*
- * Version $Id$
*
* Main Window control for bat (qt-console)
*
readSettings();
- foreach(Console *console, m_consoleHash)
+ foreach(Console *console, m_consoleHash) {
console->connect_dir();
+ }
m_currentConsole = (Console*)getFromHash(m_firstItem);
- QTimer::singleShot(750, this, SLOT(popLists()));
+ QTimer::singleShot(5000, this, SLOT(popLists()));
if (m_miscDebug) {
QString directoryResourceName;
m_currentConsole->getDirResName(directoryResourceName);
void MainWin::popLists()
{
- foreach(Console *console, m_consoleHash)
+ foreach(Console *console, m_consoleHash) {
console->populateLists(true);
+ }
m_doConnect = true;
connectConsoleSignals();
connectSignals();
*/
QBrush redBrush(Qt::red);
item->setForeground(0, redBrush);
- m_currentConsole->dockPage();
/*
* Create instances in alphabetic order of the rest
treeWidget->expandItem(topItem);
tabWidget->setCurrentWidget(m_currentConsole);
+ m_currentConsole->undockPage();
+ m_currentConsole->dockPage();
}
UnlockRes();
}
QString cmdStr = lineEdit->text(); /* Get the text */
lineEdit->clear(); /* clear the lineEdit box */
if (m_currentConsole->is_connected()) {
- if (m_currentConsole->currentDirComm(conn)) {
+ if (m_currentConsole->findDirComm(conn)) {
m_currentConsole->consoleCommand(cmdStr, conn);
} else {
/* Use consoleCommand to allow typing anything */