diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2014-02-13 12:27:58 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-13 15:46:23 +0100 |
commit | a0f963cdf96f673a51022e356f9c44920a6fb4a2 (patch) | |
tree | 36a384363041ee266178c9d475854d3d6277d58e /src/core | |
parent | 514b9f71de89a14401e305f32c61fbad5759e5f2 (diff) |
Fix title getter in WebContentsAdapter
Using GetTitle directly seems more reliable than going through
the navigation controller.
Change-Id: I0529a92295de063c6cea3371cdb9c44602950e9a
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index be68e6ef4..59d89824f 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -317,8 +317,7 @@ QUrl WebContentsAdapter::requestedUrl() const QString WebContentsAdapter::pageTitle() const { Q_D(const WebContentsAdapter); - content::NavigationEntry* entry = d->webContents->GetController().GetVisibleEntry(); - return entry ? toQt(entry->GetTitle()) : QString(); + return toQt(d->webContents->GetTitle()); } QString WebContentsAdapter::selectedText() const |