diff options
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index a40729a3..2a3545b4 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -42,6 +42,7 @@ #include "webview.h" #include "sessionmanager.h" #include "homepage.h" +#include "websnap.h" // KDE Includes #include <KUrl> @@ -299,7 +300,7 @@ void MainView::newTab() urlBar()->setUrl(KUrl("")); urlBar()->setFocus(); - HomePage p; + HomePage p(w); switch(ReKonfig::newTabsBehaviour()) { @@ -593,3 +594,24 @@ KUrl::List MainView::recentlyClosedTabs() { return m_recentlyClosedTabs; } + + +void MainView::polish() +{ + static int i = 0; + WebSnap *ws = qobject_cast<WebSnap*>(sender()); + delete ws; + + i++; + if(i<9) + { + WebView *w = currentWebView(); + HomePage p(w); + w->setHtml( p.rekonqHomePage() ); + kDebug() << "ciao---------------------------------------------____"; + } + else + { + kDebug() << "EROORORORORORORORORORO"; + } +} |