summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-05 10:45:29 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-05 10:45:29 +0100
commit719c85d9d2c72041f65255a4bd420585da7740fd (patch)
tree77e02932fe9f27449e1441e4a9415c9b54e811e6
parentMerge branch 'AutoTests' (diff)
downloadrekonq-719c85d9d2c72041f65255a4bd420585da7740fd.tar.xz
crash on loading links from homepage when no internet connection
fix
-rw-r--r--src/webview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 7e2ca59c..705a3aa7 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -369,9 +369,16 @@ void WebView::mousePressEvent(QMouseEvent *event)
void WebView::mouseMoveEvent(QMouseEvent *event)
{
m_mousePos = event->pos();
+
+ // fix crashes on loading homepage links when no internet
+ // connection (so, failed loading)
+ if(url().protocol() == QLatin1String("rekonq"))
+ return;
+
QWebView::mouseMoveEvent(event);
}
+
QPoint WebView::mousePos()
{
return m_mousePos;