Skip to content
Snippets Groups Projects
Commit 6c318897 authored by Olivier SOLDANO's avatar Olivier SOLDANO Committed by Anthony Léonard
Browse files

fix sip messaging display layout


when sip account had no messages received nor sent, the layout of the
display was broken.

Also removes debug outputs that were left in the code.

Change-Id: Ic49144de5810d99cebfff13b3a0427534d0071ca
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent 1f41a0d7
No related branches found
No related tags found
No related merge requests found
...@@ -791,12 +791,10 @@ CallWidget::showIMOutOfCall(const QModelIndex& nodeIdx) ...@@ -791,12 +791,10 @@ CallWidget::showIMOutOfCall(const QModelIndex& nodeIdx)
QString number = nodeIdx.data(static_cast<int>(Ring::Role::Number)).toString(); QString number = nodeIdx.data(static_cast<int>(Ring::Role::Number)).toString();
if (getSelectedAccount()->isIp2ip()){ if (getSelectedAccount()->isIp2ip()){
qDebug() << "SIP account messaging";
ui->imMessageEdit->setPlaceholderText("No messaging possible out of call (SIP) "); ui->imMessageEdit->setPlaceholderText("No messaging possible out of call (SIP) ");
ui->imMessageEdit->setEnabled(false); ui->imMessageEdit->setEnabled(false);
ui->sendIMButton->hide(); ui->sendIMButton->hide();
} else { } else {
qDebug() << "Ring account messaging";
ui->imMessageEdit->setPlaceholderText("Type your message here"); ui->imMessageEdit->setPlaceholderText("Type your message here");
ui->imMessageEdit->setEnabled(true); ui->imMessageEdit->setEnabled(true);
ui->sendIMButton->show(); ui->sendIMButton->show();
......
...@@ -1021,7 +1021,7 @@ Copy and share it with your friends!</string> ...@@ -1021,7 +1021,7 @@ Copy and share it with your friends!</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_12"> <layout class="QVBoxLayout" name="verticalLayout_12" stretch="1,25,25,1">
<property name="leftMargin"> <property name="leftMargin">
<number>5</number> <number>5</number>
</property> </property>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment