If you shut down wallet when a new tx has 0/1/2/3 confirmations and don't restart the wallet until that tx has more than 5 confirmations, then you'll still see 0/1/2/3 confirmations in GUI. I guess the number of confirmations is saved in wallet. When you restart, GUI gets notifications with that (old) number of confirmations (as saved on wallet). Then the stack gets new confirmations for your txs, but it doesn't notify the GUI with updated number of confirmation because of the condition in this line:
If you shut down wallet when a new tx has 0/1/2/3 confirmations and don't restart the wallet until that tx has more than 5 confirmations, then you'll still see 0/1/2/3 confirmations in GUI. I guess the number of confirmations is saved in wallet. When you restart, GUI gets notifications with that (old) number of confirmations (as saved on wallet). Then the stack gets new confirmations for your txs, but it doesn't notify the GUI with updated number of confirmation because of the condition in this line:
https://github.com/openvcash/vcash/blob/master/coin/src/stack_impl.cpp#L4927
That condition is probably there to reduce the number of notifications sent by the stack but it is also responsible for this bug.