diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-08-13 22:06:28 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-08-13 22:06:28 +0200 |
| commit | 39d8fb12c1552ec708b5fc1846d7aa9828329417 (patch) | |
| tree | 2dfa561935af1d7a133c94fb89b6cdd1b50320f0 /src/dolphintabwidget.cpp | |
| parent | 62418c58a58fac668e713655552b1c614b226298 (diff) | |
React on the redirection signal from DolphinView to properly update the tab and window titles.
REVIEW: 119697
BUG: 305721
Diffstat (limited to 'src/dolphintabwidget.cpp')
| -rw-r--r-- | src/dolphintabwidget.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp index ea71b4856..76d4b8d48 100644 --- a/src/dolphintabwidget.cpp +++ b/src/dolphintabwidget.cpp @@ -295,12 +295,19 @@ void DolphinTabWidget::tabUrlChanged(const KUrl& url) if (index >= 0) { tabBar()->setTabText(index, tabName(url)); tabBar()->setTabIcon(index, KIcon(KMimeType::iconNameForUrl(url))); + + // Emit the currentUrlChanged signal if the url of the current tab has been changed. + if (index == currentIndex()) { + emit currentUrlChanged(url); + } } } void DolphinTabWidget::currentTabChanged(int index) { - emit activeViewChanged(tabPageAt(index)->activeViewContainer()); + DolphinViewContainer* viewContainer = tabPageAt(index)->activeViewContainer(); + emit activeViewChanged(viewContainer); + emit currentUrlChanged(viewContainer->url()); } void DolphinTabWidget::tabInserted(int index) |
