ginebra2/ChromeWidget.cpp
changeset 10 232fbd5a2dcb
parent 6 1c3b8676e58c
child 15 73c48011b8c7
--- 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);
     }
   }