--- a/ginebra2/ChromeWidget.cpp Mon Jul 12 15:46:53 2010 -0400
+++ b/ginebra2/ChromeWidget.cpp Fri Aug 06 17:23:08 2010 -0400
@@ -118,6 +118,7 @@
//addJSObjectToEngine(this);
m_app = new GinebraApplication();
+ QObject::connect(this, SIGNAL(goToBackground()), m_app, SLOT(sendToBackground()));
//addJSObjectToEngine(m_app);
@@ -345,7 +346,7 @@
QList <QWebElement> initialSnippets = m_dom->getInitialElements();
foreach(QWebElement element, initialSnippets) {
ChromeSnippet * s = getSnippet(element.attribute("id"));
- if (s->initiallyVisible())
+ if (s && s->initiallyVisible())
s->setVisible(true);
}
}