Merge pull request #173 from mr-alice/master

show or hide ID chooser in message box depending on destination of msg
This commit is contained in:
Cyril Soler 2015-11-05 03:22:47 -05:00
commit 75d462e818

View File

@ -136,8 +136,8 @@ MessageComposer::MessageComposer(QWidget *parent, Qt::WindowFlags flags)
m_completer = NULL; m_completer = NULL;
ui.distantFrame->hide(); ui.distantFrame->hide();
ui.respond_to_CB->setEnabled(false) ; ui.respond_to_CB->hide();
ui.fromLabel->setEnabled(false) ; ui.fromLabel->hide();
Settings->loadWidgetInformation(this); Settings->loadWidgetInformation(this);
@ -389,15 +389,15 @@ void MessageComposer::updateCells(int,int)
} }
if(has_gxs) if(has_gxs)
{ {
ui.respond_to_CB->setEnabled(true) ; ui.respond_to_CB->show();
ui.distantFrame->show(); ui.distantFrame->show();
ui.fromLabel->setEnabled(true); ui.fromLabel->show();
} }
else else
{ {
ui.respond_to_CB->setEnabled(false) ; ui.respond_to_CB->hide();
ui.distantFrame->hide() ; ui.distantFrame->hide() ;
ui.fromLabel->setEnabled(false); ui.fromLabel->hide();
} }
} }