--- a/ginebra2/ChromeWidget.cpp Tue Jul 06 14:03:49 2010 +0300
+++ b/ginebra2/ChromeWidget.cpp Wed Aug 18 09:37:05 2010 +0300
@@ -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);
}
}