From kde-devel Sun Apr 28 21:09:06 2002 From: Doug Hanley Date: Sun, 28 Apr 2002 21:09:06 +0000 To: kde-devel Subject: Re: [PATCH] focus locationbar in new tab X-MARC-Message: https://marc.info/?l=kde-devel&m=102002834327537 On Sunday 28 April 2002 06:51 am, jonathan_brugge wrote: > The attatched patch gives focus to the locationbar when a new tab is added. > The only reason I can think of to open a tab is to browse, which needs an > URL typed in the locationbar, which means in turn that it should get focus. > Note that this is my first patch ever (in fact, my first C or C++ code > too), so there might be better ways to do this. I used focusLocationBar(), > but the rest of the code uses m_combo->setFocus();. Makes me wonder why > focusLocationBar() was ever written, as that does just the same (though > it's easier to see what it does than m_combo->setFocus()). I just applied your patch to CVS. I'm not sure why they made that function then didn't use it, but you might as well use it if its there. Excellent work. -- Doug >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<