mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-25 23:06:10 -05:00
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
This commit is contained in:
parent
09925c1bd5
commit
e3fcfe6c1a
@ -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() ;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user