forked from RepoMirrors/bemenu
Check if there is selected item at all.
This commit is contained in:
parent
c25af3e377
commit
3c700a80d1
@ -114,7 +114,9 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if (status == BM_RUN_RESULT_SELECTED) {
|
if (status == BM_RUN_RESULT_SELECTED) {
|
||||||
bmItem *item = bmMenuGetSelectedItem(menu);
|
bmItem *item = bmMenuGetSelectedItem(menu);
|
||||||
printf("%s\n", bmItemGetText(item));
|
|
||||||
|
if (item)
|
||||||
|
printf("%s\n", bmItemGetText(item));
|
||||||
}
|
}
|
||||||
|
|
||||||
bmMenuFree(menu);
|
bmMenuFree(menu);
|
||||||
|
Loading…
Reference in New Issue
Block a user