Fix QCompleter with UnfilteredPopupCompletion
commit813835f67a1053561eba67bf958eb39c0f4eedfe
authorJoão Abecasis <joao@abecasis.name>
Thu, 7 May 2009 18:45:35 +0000 (7 20:45 +0200)
committerJoão Abecasis <joao@abecasis.name>
Fri, 8 May 2009 11:28:35 +0000 (8 13:28 +0200)
treeaba4f5d40d54c8858bbc8dd80453a2d981e36b2e
parent42e2070925d012845db9cf85e597a17851a0dcb6
Fix QCompleter with UnfilteredPopupCompletion

Fixes regression introduced in a794ded85f74516239a08cf848e6b4f8b6dcac6a.

When using UnfilteredPopupCompletion the matchCount is always zero and
completion was being skipped. By adding the check for showAll we still
avoid the assert but retain correct behavior.

Task-number: 253125
Reviewed-by: jasplin
src/gui/util/qcompleter.cpp
tests/auto/qcompleter/tst_qcompleter.cpp