Check if the name returned by QInputDialog is not empty
Relevant difference from KInputDialog::getText: an empty value
is accepted. Thanks to Christoph Feck for noticing.
A similar change was not applied to the converted ::getItem
method because the logic is a bit different, and an empty or invalid
value was accepted.