Only disable transfert when no current call or in conference

This commit is contained in:
Yann Diorcet 2012-08-03 11:11:28 +02:00
parent ee6d6c3a9c
commit 0f330d8e6c

View file

@ -260,18 +260,9 @@
[conferenceButton setHidden:true];
}
}
// Disable menu when no call & no conference
if(linphone_core_get_current_call(lc) == NULL && linphone_core_is_in_conference(lc) == FALSE) {
[self hidePad];
[self hideOptions];
[optionsButton setEnabled:FALSE];
} else {
[optionsButton setEnabled:TRUE];
}
// Disable transfert in conference
if(linphone_core_is_in_conference(lc)) {
if(linphone_core_get_current_call(lc) == NULL) {
[optionsTransferButton setEnabled:FALSE];
} else {
[optionsTransferButton setEnabled:TRUE];