--- a/webengine/osswebengine/WebKit/s60/webview/PageView.cpp Mon Jan 18 21:20:18 2010 +0200
+++ b/webengine/osswebengine/WebKit/s60/webview/PageView.cpp Tue Feb 02 00:56:45 2010 +0200
@@ -18,6 +18,7 @@
// INCLUDE FILES
+#include <browser_platform_variant.hrh>
#include <../bidi.h>
#include "PageView.h"
#include <coemain.h>
@@ -88,8 +89,15 @@
// Destructor
CPageView::~CPageView()
{
- m_webView->pageScaler()->SetVisible(EFalse);
- m_webView->pageScaler()->SetFullScreenMode(EFalse);
+#ifdef BRDO_SINGLE_CLICK_ENABLED_FF
+ if (m_webView && m_webView->pageScaler())
+ {
+#endif
+ m_webView->pageScaler()->SetVisible(EFalse);
+ m_webView->pageScaler()->SetFullScreenMode(EFalse);
+#ifdef BRDO_SINGLE_CLICK_ENABLED_FF
+ }
+#endif
}