Bug 165183

Summary: proper focus when changing metacontact
Product: [Unmaintained] kopete Reporter: Stephan Diederich <stephan.diederich>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Stephan Diederich 2008-06-28 12:03:42 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

When changing the metacontact through right-click-> <PROTOCOL> ->"Change Metacontact" a popup appears which does not have keyboard focus in the search field.
Would be great to see this fixed.

Thanks in advance,
Stephan

The following line seems to fix it.

Index: kopete/libkopete/ui/metacontactselectorwidget.cpp
===================================================================
--- kopete/libkopete/ui/metacontactselectorwidget.cpp   (revision 825360)
+++ kopete/libkopete/ui/metacontactselectorwidget.cpp   (working copy)
@@ -206,6 +206,7 @@
        connect( Kopete::ContactList::self(), SIGNAL( metaContactAdded( Kopete::MetaContact * ) ), this, SLOT( slotLoadMetaContacts() ) );

        d->widget->kListViewSearchLine->setListView(d->widget->metaContactListView);
+       d->widget->kListViewSearchLine->setFocus();
        d->widget->metaContactListView->setFullWidth( true );
        d->widget->metaContactListView->addColumn( i18n( "Contacts" ), 0 );
        d->widget->metaContactListView->header()->hide();
Comment 1 Matt Rogers 2008-06-28 18:53:01 UTC
patch looks fine. please commit.

If you can't commit, then please attach the patch to the bugreport rather than 
pasting inline, and I'll try to get it applied.
--
Matt
Comment 2 Stephan Diederich 2008-06-28 19:14:37 UTC
Thanks!
Commited in revision 825570.

Stephan