Fix focus ownership if url is changed before showing the widget
Review Request #129162 - Created Oct. 12, 2016 and submitted
|Albert Astals Cid|
See the test, testFocusOnLocationEditChangeDir2 passes both with and without the patch but testFocusOnLocationEditChangeDir does not, and they basically do the same just in a different order.
Also kate + Ctrl+O now does correctly focus on the "name" lineedit the first time instead of on the kdiroperator
|QVERIFY is better than Q_ASSERT in unittests.||David Faure|