mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed the constraint of sharing own files only in channels. Replaced it by a warning, to allow peers to post from other locations etc.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6198 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7b9a0f411c
commit
2cb52f0624
@ -120,12 +120,14 @@ void CreateChannelMsg::pasteLink()
|
|||||||
|
|
||||||
if(!not_have.empty())
|
if(!not_have.empty())
|
||||||
{
|
{
|
||||||
QString msg = tr("Channel security policy prevents you from posting files that you don't have. If you have these files, you need to share them before, or attach them explicitly:")+"<br><br>" ;
|
QString msg = tr("You are about to add files you're not actually sharing. Do you still want this to happen?")+"<br><br>" ;
|
||||||
|
|
||||||
for(QList<RetroShareLink>::const_iterator it(not_have.begin());it!=not_have.end();++it)
|
for(QList<RetroShareLink>::const_iterator it(not_have.begin());it!=not_have.end();++it)
|
||||||
msg += (*it).toString() + "<br>" ;
|
msg += (*it).toString() + "<br>" ;
|
||||||
|
|
||||||
QMessageBox::warning(NULL,tr("You can only post files that you do have"),msg) ;
|
if(QMessageBox::YesToAll == QMessageBox::question(NULL,tr("About to post un-owned files to a channel."),msg,QMessageBox::YesToAll | QMessageBox::No))
|
||||||
|
for(QList<RetroShareLink>::const_iterator it(not_have.begin());it!=not_have.end();++it)
|
||||||
|
addAttachment((*it).hash().toStdString(), (*it).name().toUtf8().constData(), (*it).size(), false, "") ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user