Fix QCompleter popup regression
Fix QCompleter popup regression

The PR #8129 has introduced a regression with the QCompleter popup in
the Debug window.

How to reproduce:
  1) open the Debug window;
  2) go to the 'Console' tab;
  3) start writing some rpc command and try to pick it from the list
using arrow keys, press Enter.
Note that the popup used to display completions is not being closed. To
close it they should mouse click somewhere outside of the popup.

fujicoin/fujicoin,GlobalBoost/GlobalBoost,fanquake/bitcoin,sstone/bitcoin,jamesob/bitcoin,qtumproject/qtum,jambolo/bitcoin,nikkitan/bitcoin,prusnak/bitcoin,GroestlCoin/GroestlCoin,bitcoin/bitcoin,MeshCollider/bitcoin,prusnak/bitcoin,alecalve/bitcoin,ahmedbodi/vertcoin,Xekyo/bitcoin,yenliangl/bitcoin,bitcoinknots/bitcoin,bitcoin/bitcoin,pstratem/bitcoin,peercoin/peercoin,midnightmagic/bitcoin,myriadcoin/myriadcoin,pataquets/namecoin-core,anditto/bitcoin,alecalve/bitcoin,kazcw/bitcoin,ElementsProject/elements,tecnovert/particl-core,fanquake/bitcoin,JeremyRubin/bitcoin,sipsorcery/bitcoin,sstone/bitcoin,ElementsProject/elements,jlopp/statoshi,GroestlCoin/bitcoin,namecoin/namecore,mitchellcash/bitcoin,instagibbs/bitcoin,myriadteam/myriadcoin,bitcoinsSG/bitcoin,apoelstra/bitcoin,GroestlCoin/GroestlCoin,yenliangl/bitcoin,rnicoll/dogecoin,particl/particl-core,peercoin/peercoin,EthanHeilman/bitcoin,AkioNak/bitcoin,lateminer/bitcoin,tjps/bitcoin,droark/bitcoin,sstone/bitcoin,DigitalPandacoin/pandacoin,wellenreiter01/Feathercoin,r8921039/bitcoin,jamesob/bitcoin,rnicoll/dogecoin,prusnak/bitcoin,namecoin/namecore,Xekyo/bitcoin,namecoin/namecoin-core,ahmedbodi/vertcoin,DigitalPandacoin/pandacoin,qtumproject/qtum,litecoin-project/litecoin,cdecker/bitcoin,domob1812/namecore,particl/particl-core,GroestlCoin/bitcoin,Xekyo/bitcoin,wellenreiter01/Feathercoin,bespike/litecoin,dscotese/bitcoin,jamesob/bitcoin,GlobalBoost/GlobalBoost,myriadteam/myriadcoin,MarcoFalke/bitcoin,afk11/bitcoin,jambolo/bitcoin,EthanHeilman/bitcoin,pataquets/namecoin-core,jnewbery/bitcoin,apoelstra/bitcoin,CryptArc/bitcoin,mitchellcash/bitcoin,Sjors/bitcoin,monacoinproject/monacoin,tecnovert/particl-core,myriadcoin/myriadcoin,midnightmagic/bitcoin,nikkitan/bitcoin,apoelstra/bitcoin,pataquets/namecoin-core,jnewbery/bitcoin,bitcoin/bitcoin,mruddy/bitcoin,ahmedbodi/vertcoin,jambolo/bitcoin,AkioNak/bitcoin,jambolo/bitcoin,rnicoll/bitcoin,nikkitan/bitcoin,gjhiggins/vcoincore,tecnovert/particl-core,domob1812/bitcoin,wellenreiter01/Feathercoin,jamesob/bitcoin,monacoinproject/monacoin,fujicoin/fujicoin,andreaskern/bitcoin,pstratem/bitcoin,litecoin-project/litecoin,n1bor/bitcoin,bitcoinsSG/bitcoin,DigitalPandacoin/pandacoin,namecoin/namecoin-core,untrustbank/litecoin,OmniLayer/omnicore,yenliangl/bitcoin,myriadteam/myriadcoin,jonasschnelli/bitcoin,n1bor/bitcoin,JeremyRubin/bitcoin,GroestlCoin/GroestlCoin,untrustbank/litecoin,ElementsProject/elements,tjps/bitcoin,yenliangl/bitcoin,mitchellcash/bitcoin,GlobalBoost/GlobalBoost,n1bor/bitcoin,sipsorcery/bitcoin,vertcoin/vertcoin,sstone/bitcoin,lateminer/bitcoin,kazcw/bitcoin,domob1812/namecore,kazcw/bitcoin,domob1812/namecore,wellenreiter01/Feathercoin,EthanHeilman/bitcoin,bespike/litecoin,kallewoof/bitcoin,dscotese/bitcoin,r8921039/bitcoin,GroestlCoin/GroestlCoin,rnicoll/bitcoin,instagibbs/bitcoin,ElementsProject/elements,GroestlCoin/bitcoin,litecoin-project/litecoin,andreaskern/bitcoin,domob1812/bitcoin,droark/bitcoin,MeshCollider/bitcoin,mitchellcash/bitcoin,vertcoin/vertcoin,MarcoFalke/bitcoin,achow101/bitcoin,domob1812/namecore,droark/bitcoin,bespike/litecoin,domob1812/namecore,kallewoof/bitcoin,myriadcoin/myriadcoin,practicalswift/bitcoin,dscotese/bitcoin,prusnak/bitcoin,bitcoinknots/bitcoin,domob1812/bitcoin,myriadteam/myriadcoin,EthanHeilman/bitcoin,achow101/bitcoin,instagibbs/bitcoin,dscotese/bitcoin,namecoin/namecoin-core,OmniLayer/omnicore,kallewoof/bitcoin,midnightmagic/bitcoin,mruddy/bitcoin,myriadcoin/myriadcoin,JeremyRubin/bitcoin,JeremyRubin/bitcoin,ahmedbodi/vertcoin,anditto/bitcoin,qtumproject/qtum,sipsorcery/bitcoin,GlobalBoost/GlobalBoost,bespike/litecoin,jlopp/statoshi,achow101/bitcoin,particl/particl-core,n1bor/bitcoin,apoelstra/bitcoin,untrustbank/litecoin,myriadteam/myriadcoin,afk11/bitcoin,tecnovert/particl-core,wellenreiter01/Feathercoin,JeremyRubin/bitcoin,CryptArc/bitcoin,droark/bitcoin,fanquake/bitcoin,andreaskern/bitcoin,mruddy/bitcoin,cdecker/bitcoin,qtumproject/qtum,bitcoinknots/bitcoin,midnightmagic/bitcoin,tjps/bitcoin,practicalswift/bitcoin,untrustbank/litecoin,jtimon/bitcoin,ajtowns/bitcoin,jlopp/statoshi,AkioNak/bitcoin,tjps/bitcoin,pstratem/bitcoin,vertcoin/vertcoin,achow101/bitcoin,mruddy/bitcoin,gjhiggins/vcoincore,instagibbs/bitcoin,apoelstra/bitcoin,Sjors/bitcoin,vertcoin/vertcoin,ajtowns/bitcoin,jambolo/bitcoin,cdecker/bitcoin,wellenreiter01/Feathercoin,peercoin/peercoin,ElementsProject/elements,kallewoof/bitcoin,jlopp/statoshi,anditto/bitcoin,jambolo/bitcoin,prusnak/bitcoin,FeatherCoin/Feathercoin,fanquake/bitcoin,droark/bitcoin,namecoin/namecoin-core,gjhiggins/vcoincore,jonasschnelli/bitcoin,peercoin/peercoin,n1bor/bitcoin,apoelstra/bitcoin,MeshCollider/bitcoin,tecnovert/particl-core,untrustbank/litecoin,sipsorcery/bitcoin,mm-s/bitcoin,instagibbs/bitcoin,n1bor/bitcoin,yenliangl/bitcoin,dscotese/bitcoin,jonasschnelli/bitcoin,anditto/bitcoin,fujicoin/fujicoin,kallewoof/bitcoin,Xekyo/bitcoin,particl/particl-core,CryptArc/bitcoin,afk11/bitcoin,particl/particl-core,qtumproject/qtum,pataquets/namecoin-core,ajtowns/bitcoin,kazcw/bitcoin,rnicoll/dogecoin,jtimon/bitcoin,afk11/bitcoin,FeatherCoin/Feathercoin,bitcoinsSG/bitcoin,GlobalBoost/GlobalBoost,GroestlCoin/bitcoin,ajtowns/bitcoin,MarcoFalke/bitcoin,tjps/bitcoin,ahmedbodi/vertcoin,GroestlCoin/GroestlCoin,gjhiggins/vcoincore,namecoin/namecore,myriadcoin/myriadcoin,practicalswift/bitcoin,rnicoll/dogecoin,AkioNak/bitcoin,jtimon/bitcoin,domob1812/namecore,fujicoin/fujicoin,GlobalBoost/GlobalBoost,vertcoin/vertcoin,r8921039/bitcoin,peercoin/peercoin,litecoin-project/litecoin,FeatherCoin/Feathercoin,kazcw/bitcoin,rnicoll/bitcoin,pstratem/bitcoin,EthanHeilman/bitcoin,midnightmagic/bitcoin,qtumproject/qtum,bitcoin/bitcoin,fanquake/bitcoin,anditto/bitcoin,jtimon/bitcoin,alecalve/bitcoin,practicalswift/bitcoin,namecoin/namecore,particl/particl-core,pstratem/bitcoin,instagibbs/bitcoin,Sjors/bitcoin,jnewbery/bitcoin,OmniLayer/omnicore,ahmedbodi/vertcoin,pataquets/namecoin-core,monacoinproject/monacoin,sipsorcery/bitcoin,gjhiggins/vcoincore,myriadteam/myriadcoin,monacoinproject/monacoin,litecoin-project/litecoin,bitcoinsSG/bitcoin,JeremyRubin/bitcoin,r8921039/bitcoin,sstone/bitcoin,namecoin/namecore,mitchellcash/bitcoin,DigitalPandacoin/pandacoin,bespike/litecoin,jlopp/statoshi,mruddy/bitcoin,nikkitan/bitcoin,GroestlCoin/bitcoin,lateminer/bitcoin,AkioNak/bitcoin,MarcoFalke/bitcoin,jlopp/statoshi,bitcoin/bitcoin,mm-s/bitcoin,kallewoof/bitcoin,tjps/bitcoin,CryptArc/bitcoin,kazcw/bitcoin,Xekyo/bitcoin,OmniLayer/omnicore,monacoinproject/monacoin,achow101/bitcoin,jnewbery/bitcoin,FeatherCoin/Feathercoin,cdecker/bitcoin,alecalve/bitcoin,achow101/bitcoin,qtumproject/qtum,myriadcoin/myriadcoin,ElementsProject/elements,pataquets/namecoin-core,jtimon/bitcoin,afk11/bitcoin,DigitalPandacoin/pandacoin,MeshCollider/bitcoin,bitcoinsSG/bitcoin,r8921039/bitcoin,AkioNak/bitcoin,nikkitan/bitcoin,mitchellcash/bitcoin,andreaskern/bitcoin,CryptArc/bitcoin,OmniLayer/omnicore,MarcoFalke/bitcoin,lateminer/bitcoin,lateminer/bitcoin,practicalswift/bitcoin,dscotese/bitcoin,cdecker/bitcoin,OmniLayer/omnicore,yenliangl/bitcoin,GroestlCoin/GroestlCoin,mm-s/bitcoin,andreaskern/bitcoin,EthanHeilman/bitcoin,jonasschnelli/bitcoin,fujicoin/fujicoin,mruddy/bitcoin,pstratem/bitcoin,lateminer/bitcoin,gjhiggins/vcoincore,domob1812/bitcoin,prusnak/bitcoin,nikkitan/bitcoin,FeatherCoin/Feathercoin,jtimon/bitcoin,FeatherCoin/Feathercoin,Sjors/bitcoin,jnewbery/bitcoin,GroestlCoin/bitcoin,mm-s/bitcoin,namecoin/namecoin-core,monacoinproject/monacoin,mm-s/bitcoin,MarcoFalke/bitcoin,cdecker/bitcoin,afk11/bitcoin,mm-s/bitcoin,litecoin-project/litecoin,namecoin/namecoin-core,jonasschnelli/bitcoin,Xekyo/bitcoin,sipsorcery/bitcoin,ajtowns/bitcoin,GlobalBoost/GlobalBoost,domob1812/bitcoin,practicalswift/bitcoin,CryptArc/bitcoin,ajtowns/bitcoin,andreaskern/bitcoin,fanquake/bitcoin,sstone/bitcoin,tecnovert/particl-core,alecalve/bitcoin,droark/bitcoin,r8921039/bitcoin,MeshCollider/bitcoin,anditto/bitcoin,rnicoll/bitcoin,MeshCollider/bitcoin,DigitalPandacoin/pandacoin,jamesob/bitcoin,domob1812/bitcoin,bitcoin/bitcoin,jamesob/bitcoin,Sjors/bitcoin,bitcoinknots/bitcoin,peercoin/peercoin,midnightmagic/bitcoin,vertcoin/vertcoin,namecoin/namecore,bitcoinsSG/bitcoin,rnicoll/bitcoin,rnicoll/dogecoin,untrustbank/litecoin,alecalve/bitcoin,rnicoll/bitcoin,bitcoinknots/bitcoin,bespike/litecoin,fujicoin/fujicoin