item = new QTreeWidgetItem(topItem);
item->setText(0, "Console");
if (!m_firstItem){ m_firstItem = item; }
- item->setIcon(0,QIcon(QString::fromUtf8(":images/utilities-terminal.svg")));
+ item->setIcon(0,QIcon(QString::fromUtf8(":images/utilities-terminal.png")));
/* insert the cosole and tree widget item into the hashes */
hashInsert(item, m_currentConsole);
new FileSet();
new Jobs();
createPageJobList("", "", "", "", NULL);
- new MediaList();
- new Storage();
- new restoreTree();
JobPlotPass pass;
pass.use = false;
new JobPlot(NULL, pass);
+ new MediaList();
+ new Storage();
+ new restoreTree();
treeWidget->expandItem(topItem);
stackedWidget->setCurrentWidget(m_currentConsole);
{
m_isClosing = true;
writeSettings();
+ /*
+ * Close the console pages before non-console pages so that
+ * the notifier is turned off. Otherwise it prints an error when
+ * the page it is using gets destroyed.
+ */
+ foreach(Console *console, m_consoleHash){
+ console->writeSettings();
+ console->terminate();
+ console->closeStackPage();
+ }
/* close all non console pages, this will call settings in destructors */
while (m_consoleHash.count() < m_pagehash.count()) {
foreach(Pages *page, m_pagehash) {
}
}
}
- /* close the console pages and terminate connection */
- foreach(Console *console, m_consoleHash){
- console->writeSettings();
- console->terminate();
- console->closeStackPage();
- }
event->accept();
}