Small bugfix

This commit is contained in:
Ralf Ramsauer 2015-10-11 19:38:06 +02:00
parent 5c8ca78c99
commit d504b191d5
1 changed files with 3 additions and 2 deletions

View File

@ -31,8 +31,9 @@ void MainWindow::setClientmessage(const Clientmessage &msg)
_LED(msg.isOpen());
if (_oldMessage.isOpen() && !msg.isOpen()) {
// regular close
if (_oldMessage.isOpen()
&& !msg.isOpen()
&& !doormsg.isLockButton) {
_soundLock.playAsync();
} else if (!_oldMessage.isOpen() && msg.isOpen()) {
// regular open