mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05: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. (port from v0.5.5 rev. 6198)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8045 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
71a8dba487
commit
4d51240442
2
TODO.txt
2
TODO.txt
@ -52,7 +52,7 @@ E [ ] "show all" and "show everyone" in destination list are duplicate na
|
||||
H [X] marking all as read in channels takes time. The channel icon should show a waiting clock
|
||||
during the operation to avoid the user to re-click many times in the hope to get the posts marked as read.
|
||||
[X] channels items show a 0 left to the up/Dn buttons. What is it??
|
||||
[ ] allow to post on channels when attachment is not in shared files. Just display a warning.
|
||||
[X] allow to post on channels when attachment is not in shared files. Just display a warning.
|
||||
|
||||
Chat lobbies
|
||||
H [X] Chat lobbies should use Identities. That's a significant change, probably not backward compatible.
|
||||
|
@ -142,12 +142,14 @@ void CreateGxsChannelMsg::pasteLink()
|
||||
|
||||
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)
|
||||
msg += (*it).toString() + "<br>" ;
|
||||
for(QList<RetroShareLink>::const_iterator it(not_have.begin());it!=not_have.end();++it)
|
||||
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(RsFileHash((*it).hash().toStdString()), (*it).name().toUtf8().constData(), (*it).size(), false, RsPeerId()) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user