summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-05-23 18:29:33 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-05-23 18:29:33 +0200
commitb60db0bb4960499d7e384e01ba6d775f48922767 (patch)
tree2f8aa169178ae8d12c4e7ba5f602e35856f9abe7
parentreordering favorites by drag & drop (diff)
downloadrekonq-b60db0bb4960499d7e384e01ba6d775f48922767.tar.xz
Reload Preview fix
-rw-r--r--src/newtabpage.cpp9
1 files 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();
}