diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-23 00:14:31 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-23 00:14:31 +0200 |
commit | 041beac26c28317417b98f302a70dc969d8bbc5a (patch) | |
tree | 58945e532a2af29db581152891c0647fbe23115a /src | |
parent | rekonq 0.4.63 (diff) | |
download | rekonq-041beac26c28317417b98f302a70dc969d8bbc5a.tar.xz |
Forgot to clean WebPage class..
Diffstat (limited to 'src')
-rw-r--r-- | src/webpage.cpp | 50 |
1 files changed, 5 insertions, 45 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 1e25ce8d..b6f26f19 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -570,49 +570,9 @@ void WebPage::showSSLInfo() void WebPage::updateImage(bool ok) { - if(!ok) - kDebug() << "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO"; - else - kDebug() << "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"; - -/* int previewIndex = 1; - KUrl url; - QString snapTitle = QString("ciao");*/ -// // Update page, but only if open -// if(m_root.document().findAll("#rekonq-newtabpage").count() == 0) -// return; -// if(m_root.findAll(".favorites").count() == 0 || m_root.findAll(".closedTabs").count() == 0) -// return; -// -// QStringList urls = ReKonfig::previewUrls(); -// -// for(int i = 0; i < urls.count(); i++) -// { -// QString title = urls.at(i); -// KUrl url( title ); -// -// -// if( WebSnap::existsImage(url) ) -// { -// QStringList names = ReKonfig::previewNames(); -// names.replace(i, title); -// ReKonfig::setPreviewNames(names); -// ReKonfig::self()->writeConfig(); -// -// QWebElement prev = m_root.findFirst("#preview" + QVariant(i).toString()); -// if(KUrl(prev.findFirst("a").attribute("href")) == url ) -// { -// QWebElement newPrev = validPreview(i, url, title); -// -// if(m_root.findAll(".closedTabs").count() != 0) -// hideControls(newPrev); -// -// prev.replace(newPrev); -// } -// break; -// } -// } - - NewTabPage p( mainFrame() ); - p.snapFinished(); + if(ok) + { + NewTabPage p( mainFrame() ); + p.snapFinished(); + } } |