From e3fcfe6c1aba186a9afdf74e0d526d45ed606157 Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 23 Sep 2010 17:16:27 +0000 Subject: [PATCH] disabled the OK Button by default, enable it back when file is attached. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3526 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/channels/CreateChannelMsg.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/retroshare-gui/src/gui/channels/CreateChannelMsg.cpp b/retroshare-gui/src/gui/channels/CreateChannelMsg.cpp index f031dd0ab..e9e301f15 100644 --- a/retroshare-gui/src/gui/channels/CreateChannelMsg.cpp +++ b/retroshare-gui/src/gui/channels/CreateChannelMsg.cpp @@ -44,11 +44,13 @@ CreateChannelMsg::CreateChannelMsg(std::string cId) setAttribute ( Qt::WA_DeleteOnClose, true ); connect(buttonBox, SIGNAL(accepted()), this, SLOT(sendMsg())); - connect(buttonBox, SIGNAL(rejected()), this, SLOT(cancelMsg())); + connect(buttonBox, SIGNAL(rejected()), this, SLOT(cancelMsg())); connect(addFileButton, SIGNAL(clicked() ), this , SLOT(addExtraFile())); connect(addfilepushButton, SIGNAL(clicked() ), this , SLOT(addExtraFile())); connect(addThumbnailButton, SIGNAL(clicked() ), this , SLOT(addThumbnail())); + + buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); setAcceptDrops(true); @@ -502,9 +504,9 @@ void CreateChannelMsg::addThumbnail() // to show the selected thumbnail_label->setPixmap(picture); - std::cerr << "Sending avatar image down the pipe" << std::endl ; + std::cerr << "Sending Thumbnail image down the pipe" << std::endl ; - // send avatar down the pipe for other peers to get it. + // send Thumbnail down the pipe for other peers to get it. QByteArray ba; QBuffer buffer(&ba); buffer.open(QIODevice::WriteOnly); @@ -512,8 +514,6 @@ void CreateChannelMsg::addThumbnail() std::cerr << "Image size = " << ba.size() << std::endl ; - //rsMsgs->setOwnAvatarData((unsigned char *)(ba.data()),ba.size()) ; // last char 0 included. - //updateThumbnail() ; } }