summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-07 00:18:36 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-07 00:18:36 +0100
commitc8279e0c4a76db65547e6c711b8e7717e0d28059 (patch)
treee9e42a5cca514d600094afe8d4c03af2bd82ce23 /src/webview.cpp
parentFixed crash when closing rekonq with more than one tab (diff)
downloadrekonq-c8279e0c4a76db65547e6c711b8e7717e0d28059.tar.xz
No more QmessageBox here..
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 2e97c486..b14b4936 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -32,10 +32,8 @@
#include <QClipboard>
#include <QMenu>
-#include <QMessageBox>
#include <QMouseEvent>
#include <QWebHitTestResult>
-//#include <QUiLoader>
#include <QBuffer>
@@ -53,7 +51,8 @@ WebPage::WebPage(QObject *parent)
BrowserMainWindow *WebPage::mainWindow()
{
QObject *w = this->parent();
- while (w) {
+ while (w)
+ {
if (BrowserMainWindow *mw = qobject_cast<BrowserMainWindow*>(w))
return mw;
w = w->parent();