summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/findbar.cpp13
-rw-r--r--src/newtabpage.cpp4
2 files changed, 9 insertions, 8 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index 7cbe9d17..48a3c4e0 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -143,15 +143,14 @@ bool FindBar::highlightAllState() const
void FindBar::show()
{
// show findbar if not visible
- if (isVisible())
- return;
-
- QWidget::show();
+ if(isHidden())
+ {
+ QWidget::show();
+ emit searchString(m_lineEdit->text());
+ }
+
m_hideTimer->start(60000);
- // emit a new find signal with the current text
- emit(searchString(m_lineEdit->text()));
-
// set focus to findbar if user select showFindBar shortcut
m_lineEdit->setFocus();
m_lineEdit->selectAll();
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp
index e2837f94..043648e7 100644
--- a/src/newtabpage.cpp
+++ b/src/newtabpage.cpp
@@ -49,6 +49,7 @@
#include <KConfig>
#include <KConfigGroup>
#include <KDialog>
+#include <KCalendarSystem>
// Qt Includes
#include <QFile>
@@ -539,7 +540,8 @@ void NewTabPage::downloadsPage()
div.appendInside("<strong>" + fName + "</strong>");
div.appendInside(" - ");
- div.appendInside( item.dateTime.toString("'<em>'dd MMMM yyyy hh:mm'</em>'") );
+ QString date = KGlobal::locale()->formatDateTime(item.dateTime, KLocale::FancyLongDate);
+ div.appendInside("<em>" + date + "</em>");
div.appendInside("<br/>");
div.appendInside(item.srcUrlString);