From 93368aae6156d22fb12e99982a660610db28258a Mon Sep 17 00:00:00 2001 From: mr-alice Date: Wed, 4 Nov 2015 21:08:31 -0500 Subject: [PATCH] show or hide ID chooser in message box depending on destination of message --- retroshare-gui/src/gui/msgs/MessageComposer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/retroshare-gui/src/gui/msgs/MessageComposer.cpp b/retroshare-gui/src/gui/msgs/MessageComposer.cpp index 16c58a20c..3b771aa3f 100644 --- a/retroshare-gui/src/gui/msgs/MessageComposer.cpp +++ b/retroshare-gui/src/gui/msgs/MessageComposer.cpp @@ -136,8 +136,8 @@ MessageComposer::MessageComposer(QWidget *parent, Qt::WindowFlags flags) m_completer = NULL; ui.distantFrame->hide(); - ui.respond_to_CB->setEnabled(false) ; - ui.fromLabel->setEnabled(false) ; + ui.respond_to_CB->hide(); + ui.fromLabel->hide(); Settings->loadWidgetInformation(this); @@ -389,15 +389,15 @@ void MessageComposer::updateCells(int,int) } if(has_gxs) { - ui.respond_to_CB->setEnabled(true) ; + ui.respond_to_CB->show(); ui.distantFrame->show(); - ui.fromLabel->setEnabled(true); + ui.fromLabel->show(); } else { - ui.respond_to_CB->setEnabled(false) ; + ui.respond_to_CB->hide(); ui.distantFrame->hide() ; - ui.fromLabel->setEnabled(false); + ui.fromLabel->hide(); } }