From a256bbf4fa61ede40c19ff8e9781caad95b3d7cc Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 10 May 2012 00:35:46 +0200 Subject: Calm down kDebug() calls on NewTabPage --- src/newtabpage.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index 94a10845..9b5c1559 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -67,7 +67,6 @@ NewTabPage::NewTabPage(QWebFrame *frame) QString htmlFilePath = KStandardDirs::locate("data", "rekonq/htmls/home.html"); QString dataPath = QL1S("file://") + htmlFilePath; dataPath.remove(QL1S("/htmls/home.html")); - kDebug() << "data path: " << dataPath; QFile file(htmlFilePath); bool isOpened = file.open(QIODevice::ReadOnly); @@ -126,8 +125,6 @@ void NewTabPage::generate(const KUrl &url) { const int winIndex = url.queryItem(QL1S("win")).toInt(); const int tabIndex = url.queryItem(QL1S("tab")).toInt(); - kDebug() << "win = " << winIndex; - kDebug() << "tab = " << tabIndex; MainWindow *w = rApp->mainWindowList().at(winIndex).data(); @@ -145,8 +142,6 @@ void NewTabPage::generate(const KUrl &url) { const int winIndex = url.queryItem(QL1S("win")).toInt(); const int tabIndex = url.queryItem(QL1S("tab")).toInt(); - kDebug() << "win = " << winIndex; - kDebug() << "tab = " << tabIndex; MainWindow *w = rApp->mainWindowList().at(winIndex).data(); w->mainView()->closeTab(tabIndex); @@ -161,7 +156,6 @@ void NewTabPage::generate(const KUrl &url) if (url.fileName() == QL1S("restore")) { const int tabIndex = url.queryItem(QL1S("tab")).toInt(); - kDebug() << "tab = " << tabIndex; rApp->mainWindow()->mainView()->restoreClosedTab(tabIndex, false); return; @@ -216,8 +210,7 @@ void NewTabPage::loadPageForUrl(const KUrl &url) parentFrame->setHtml(m_html); m_root = parentFrame->documentElement().findFirst(QL1S("#content")); -kDebug() << "IS NULL? " << m_root.isNull(); -kDebug() << "URL: " << url; + browsingMenu(url); QString title; @@ -317,7 +310,6 @@ void NewTabPage::browsingMenu(const KUrl ¤tUrl) else if (currentUrl == QL1S("about:home") && it.findFirst(aTagString).attribute(hrefAttributeString) == QL1S("about:favorites")) it.addClass(QL1S("current")); m_root.document().findFirst(QL1S("#navigation")).appendInside(it); - kDebug() << "is null find nav? " << m_root.document().findFirst(QL1S("#navigation")).isNull(); } } @@ -462,7 +454,6 @@ void NewTabPage::closedTabsPage() QList links = rApp->mainWindow()->mainView()->recentlyClosedTabs(); - kDebug() << "CLOSED TABS: " << links.count(); if (links.isEmpty()) { m_root.addClass(QL1S("empty")); @@ -473,7 +464,6 @@ void NewTabPage::closedTabsPage() for (int i = 0; i < links.count(); ++i) { TabHistory item = links.at(i); - kDebug() << "URL " << i << " : " << item.url; QWebElement prev; if (item.url.isEmpty()) -- cgit v1.2.1