/*
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.
/* First get the tree widget item and destroy it */
QTreeWidgetItem *item=mainWin->getFromHash(this);
/* remove the QTreeWidgetItem <-> page from the hash */
- mainWin->hashRemove(item, this);
- /* remove the item from the page selector by destroying it */
- delete item;
+ if (item) {
+ mainWin->hashRemove(item, this);
+ /* remove the item from the page selector by destroying it */
+ delete item;
+ }
/* remove this */
delete this;
}
{
consoleCommand(command, true);
}
+
void Pages::consoleCommand(QString &command, bool setCurrent)
{
int conn;
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 */