[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bkde-baseapps=5D_konqueror/src=3A_Show_the_correct_u?=
From:       Dawit Alemayehu <adawit () kde ! org>
Date:       2011-06-19 18:24:27
Message-ID: 20110619182427.D2AABA60A4 () git ! kde ! org
[Download RAW message or body]

Git commit 61bd039bf6fcc67afe2d50f14b707b704283f002 by Dawit Alemayehu.
Committed on 09/06/2011 at 08:03.
Pushed by adawit into branch 'master'.

Show the correct url when switching tabs after clearing Konqueror's location
bar using the clear button in the line edit or the backspace key.

BUG: 187891
FIXED-IN: 4.6.5
REVIEW: 101558

(cherry picked from commit e8abdb8bfe6f4973ceb47db487dfc61d0aefd8eb)

M  +5    -0    konqueror/src/konqmainwindow.cpp     

http://commits.kde.org/kde-baseapps/61bd039bf6fcc67afe2d50f14b707b704283f002

diff --git a/konqueror/src/konqmainwindow.cpp b/konqueror/src/konqmainwindow.cpp
index 666055a..2ff1072 100644
--- a/konqueror/src/konqmainwindow.cpp
+++ b/konqueror/src/konqmainwindow.cpp
@@ -2044,6 +2044,11 @@ void KonqMainWindow::slotPartActivated(KParts::Part *part)
 
   //kDebug() << "setting location bar url to"
   //         << m_currentView->locationBarURL() << "m_currentView=" << m_currentView;
+
+  // Make sure the location bar gets updated when the view(tab) is changed.
+  if (oldView != newView) {
+    m_combo->lineEdit()->setModified(false);
+  }
   m_currentView->setLocationBarURL( m_currentView->locationBarURL() );
 
   updateToolBarActions();

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic