diff --git a/sflphone-client-kde/src/AccountWizard.cpp b/sflphone-client-kde/src/AccountWizard.cpp index 4745593e5e1e28554f173d2750b8bb92e75612ef..40285de366838c8798b0c42e6601c51a9b88b643 100644 --- a/sflphone-client-kde/src/AccountWizard.cpp +++ b/sflphone-client-kde/src/AccountWizard.cpp @@ -233,7 +233,7 @@ void AccountWizard::accept() } if(createAccount) { - mailbox = ACCOUNT_MAILBOX_DEFAULT_VALUE; +// mailbox = ACCOUNT_MAILBOX_DEFAULT_VALUE; enabled = ACCOUNT_ENABLED_TRUE; ConfigurationManagerInterface & configurationManager = ConfigurationManagerInterfaceSingleton::getInstance(); QString accountId = configurationManager.addAccount(accountDetails); diff --git a/sflphone-client-kde/src/Call.cpp b/sflphone-client-kde/src/Call.cpp index d7aacb29495b2aff59c5890e6aa3073bc306ae55..10c9aa2dd1b23e3ebffa7532e11de46ee2e4bbaf 100644 --- a/sflphone-client-kde/src/Call.cpp +++ b/sflphone-client-kde/src/Call.cpp @@ -530,9 +530,10 @@ void Call::switchRecord() void Call::setRecord() { CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); - qDebug() << "Setting record for call. callId : " << callId; + qDebug() << "Setting record " << !recording << " for call. callId : " << callId; callManager.setRecording(callId); recording = !recording; + updateItem(); } void Call::start() @@ -622,7 +623,7 @@ void Call::updateItem() setItemIcon(ICON_CURRENT_REC); else { - QString str(callStateIcons[currentState]); + QString str = QString(callStateIcons[currentState]); setItemIcon(str); } bool transfer = currentState == CALL_STATE_TRANSFER || currentState == CALL_STATE_TRANSF_HOLD; diff --git a/sflphone-client-kde/src/ConfigDialog.cpp b/sflphone-client-kde/src/ConfigDialog.cpp index 0a51beea9f35b36a131d56b6970fa18d894ca9dd..773803df86147d92b765cabc0b1e2d830421d542 100644 --- a/sflphone-client-kde/src/ConfigDialog.cpp +++ b/sflphone-client-kde/src/ConfigDialog.cpp @@ -678,6 +678,7 @@ void ConfigurationDialog::on_button_accountUp_clicked() listWidget_accountList->insertItem(currentRow - 1 , item); listWidget_accountList->setItemWidget(item, widget); listWidget_accountList->setCurrentItem(item); + changedAccountList(); } void ConfigurationDialog::on_button_accountDown_clicked() @@ -694,6 +695,7 @@ void ConfigurationDialog::on_button_accountDown_clicked() listWidget_accountList->insertItem(currentRow + 1 , item); listWidget_accountList->setItemWidget(item, widget); listWidget_accountList->setCurrentItem(item); + changedAccountList(); } void ConfigurationDialog::on_button_accountAdd_clicked() @@ -708,6 +710,7 @@ void ConfigurationDialog::on_button_accountAdd_clicked() listWidget_accountList->setCurrentRow(r); frame2_editAccounts->setEnabled(true); } + changedAccountList(); } void ConfigurationDialog::on_button_accountRemove_clicked() @@ -717,6 +720,7 @@ void ConfigurationDialog::on_button_accountRemove_clicked() QListWidgetItem * item = listWidget_accountList->takeItem(r); accountList->removeAccount(item); listWidget_accountList->setCurrentRow( (r >= listWidget_accountList->count()) ? r-1 : r ); + changedAccountList(); } void ConfigurationDialog::on_toolButton_accountsApply_clicked() diff --git a/sflphone-client-kde/src/sflphone_kdeview.cpp b/sflphone-client-kde/src/sflphone_kdeview.cpp index 46ce96c459a4550d0ef1123d170dabe8001e105d..95ea9a1c4085cce6c6545219f88483c6c48d55ae 100644 --- a/sflphone-client-kde/src/sflphone_kdeview.cpp +++ b/sflphone-client-kde/src/sflphone_kdeview.cpp @@ -159,23 +159,13 @@ void sflphone_kdeView::addCallToCallList(Call * call) void sflphone_kdeView::addCallToCallHistory(Call * call) { - qDebug() << "addCallToCallHistory1"; QListWidgetItem * item = call->getHistoryItem(); - qDebug() << "addCallToCallHistory2"; QWidget * widget = call->getHistoryItemWidget(); - qDebug() << "addCallToCallHistory3"; if(item && widget) { - qDebug() << "addCallToCallHistory4"; listWidget_callHistory->addItem(item); - qDebug() << "addCallToCallHistory5"; - qDebug() << "item = " << item; - qDebug() << "widget = " << widget; - qDebug() << "itemWidget(item) = " << listWidget_callHistory->itemWidget(item); listWidget_callHistory->setItemWidget(item, widget); - qDebug() << "addCallToCallHistory6"; } - qDebug() << "addCallToCallHistory7"; } void sflphone_kdeView::addContactToContactList(Contact * contact) @@ -417,7 +407,7 @@ void sflphone_kdeView::updateWindowCallState() bool recordActivated = false; //tells whether the call can be recorded in the state it is right now bool recordEnabled = false; - + enabledActions[5] = ! firstRegisteredAccount()->getAccountDetail(ACCOUNT_MAILBOX).isempty(); if(stackedWidget_screen->currentWidget() == page_callList) { item = listWidget_callList->currentItem(); @@ -561,6 +551,7 @@ void sflphone_kdeView::updateWindowCallState() enabledActions[1] = true; } } + action_accept->setEnabled(enabledActions[0]); action_refuse->setEnabled(enabledActions[1]); action_hold->setEnabled(enabledActions[2]);