Commit ac79610a authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Set a focus proxy in case this widget ends up with focus

Should never happen, but as it is the "main" widget of the part it might end up there if someone just says part->mainwidget->setfocus or something like that
At least this way the focus does not go down the drain and ends up in the sidebar list, which is not optimal but is better than getting the keyboard focus lost
parent 6176e292
......@@ -474,6 +474,8 @@ Sidebar::Sidebar( QWidget *parent )
connect( d->list, SIGNAL(customContextMenuRequested(QPoint)),
this, SLOT(listContextMenu(QPoint)) );
connect( d->splitter, SIGNAL(splitterMoved(int,int)), this, SLOT(splitterMoved(int,int)) );
setFocusProxy( d->list );
}
Sidebar::~Sidebar()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment