Commit 1bd9ac05 authored by Xuetian Weng's avatar Xuetian Weng Committed by Xuetian Weng
Browse files

Fix key recording by setWindow before capture starts.

It is common that during the construction of widget, it is not yet added to
a window. Thus windowHandle will simply return null in this case. Always set
the window to before the capture starts.

BUG: 430388
parent c3cdcf72
......@@ -493,6 +493,7 @@ void KKeySequenceWidget::setCheckActionCollections(const QList<KActionCollection
//slot
void KKeySequenceWidget::captureKeySequence()
{
d->recorder->setWindow(window()->windowHandle());
d->recorder->startRecording();
}
......
Supports Markdown
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