Clarify checks of dialog and widget existence.
commit433ae45bdda43e8ec81f6522f2226f177e4ec9e8
authorAndrew Borodin <aborodin@vmail.ru>
Sun, 27 Jan 2019 08:38:57 +0000 (27 11:38 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 3 Feb 2019 10:10:00 +0000 (3 13:10 +0300)
tree767fca57343239319f612f3beb652e4e4ada5bbc
parent1c621d1a86688741baa6991b657f3cc0890a8e39
Clarify checks of dialog and widget existence.

Widget list in the dialog cannot contain empty elements.
Dialog list cannot contain empty elements too.
Therefore simplify some checks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/widget/dialog-switch.c
lib/widget/dialog.c