The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
- modify it under the terms of version two of the GNU General Public
+ modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
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(2000, 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();
/* insert the cosole and tree widget item into the hashes */
hashInsert(item, m_currentConsole);
+ m_currentConsole->dockPage();
/* Set Color of treeWidgetItem for the console
* It will be set to green in the console class if the connection is made.
*/
QBrush redBrush(Qt::red);
item->setForeground(0, redBrush);
- m_currentConsole->dockPage();
/*
* Create instances in alphabetic order of the rest
new MediaList();
new MediaView();
new Storage();
- if (m_openBrowser)
+ if (m_openBrowser) {
new restoreTree();
- if (m_openDirStat)
+ }
+ if (m_openDirStat) {
new DirStat();
-
+ }
treeWidget->expandItem(topItem);
tabWidget->setCurrentWidget(m_currentConsole);
}
return;
}
m_waitState = true;
- if (mainWin->m_connDebug)
- Pmsg0(000, "Entering Wait State\n");
+ if (mainWin->m_connDebug) Pmsg0(000, "Entering Wait State\n");
app->setOverrideCursor(QCursor(Qt::WaitCursor));
disconnectSignals();
disconnectConsoleSignals(m_currentConsole);
*/
void MainWin::waitExit()
{
+ if (!m_waitState || m_isClosing) {
+ return;
+ }
m_waitState = false;
if (mainWin->m_connDebug) Pmsg0(000, "Exiting Wait State\n");
- if (m_waitTreeItem != treeWidget->currentItem())
+ if (m_waitTreeItem && (m_waitTreeItem != treeWidget->currentItem())) {
treeWidget->setCurrentItem(m_waitTreeItem);
+ }
if (m_doConnect) {
connectSignals();
connectConsoleSignals();
}
/* set the value for the currently active console */
int stackindex = tabWidget->indexOf(nextPage);
+ nextPage->firstUseDock();
/* Is this page currently on the stack or is it undocked */
if (stackindex >= 0) {
}
}
}
- if (!found)
+ if (!found) {
new DirStat();
+ }
}
void MainWin::restoreButtonClicked()
{
new prerestorePage();
+ if (mainWin->m_miscDebug) Pmsg0(000, "in restoreButtonClicked after prerestorePage\n");
}
void MainWin::jobPlotButtonClicked()
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 */