diff options
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; } |