mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -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
@ -50,6 +50,8 @@ CreateChannelMsg::CreateChannelMsg(std::string cId)
|
||||
connect(addfilepushButton, SIGNAL(clicked() ), this , SLOT(addExtraFile()));
|
||||
connect(addThumbnailButton, SIGNAL(clicked() ), this , SLOT(addThumbnail()));
|
||||
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||
|
||||
setAcceptDrops(true);
|
||||
|
||||
newChannelMsg();
|
||||
@ -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