diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-10-23 17:26:08 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:05 +0100 |
commit | fcbe8fba1b0d197fb2711bdce5e01a2b7a3a8e56 (patch) | |
tree | 082f52276c3adcc16c0af30fb63813ac0f3322c5 /src/webwindow | |
parent | Fix line changed by accident, restoring correct behavior on startup (diff) | |
download | rekonq-fcbe8fba1b0d197fb2711bdce5e01a2b7a3a8e56.tar.xz |
Fix tab titles managements on empty page titles
Diffstat (limited to 'src/webwindow')
-rw-r--r-- | src/webwindow/webwindow.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index 4c8f9dae..b38498d5 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -630,7 +630,16 @@ KUrl WebWindow::url() const QString WebWindow::title() const { - return _tab->view()->title(); + QString t = _tab->view()->title(); + if (t.isEmpty()) + { + if (url().isLocalFile()) + return url().fileName(); + else + return QL1S("rekonq"); + } + + return t; } |