From b60db0bb4960499d7e384e01ba6d775f48922767 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 23 May 2012 18:29:33 +0200 Subject: Reload Preview fix --- src/newtabpage.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index 9e50ef19..8d5e5780 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -400,7 +400,7 @@ void NewTabPage::favoritesPage() QWebElement prev = url.isEmpty() ? emptyPreview(i) - : validPreview(i, url, QString::number(i + 1) + " - " + names.at(i)); + : validPreview(i, url, QString::number(i + 1) + QL1S(" - ") + names.at(i)); m_root.appendInside(prev); } @@ -736,10 +736,9 @@ void NewTabPage::reloadPreview(int index) QString urlString = ReKonfig::previewUrls().at(index); QString nameString = ReKonfig::previewNames().at(index); - kDebug() << "URL: " << urlString; - kDebug() << "NAME: " << nameString; - - ThumbUpdater *t = new ThumbUpdater(thumb, urlString, nameString); + QString title = checkTitle(QString::number(index + 1) + QL1S(" - ") + nameString); + + ThumbUpdater *t = new ThumbUpdater(thumb, urlString, title); t->updateThumb(); } -- cgit v1.2.1