mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed update of info in ShareDialog (patch from Sentry). Also updated the text to replace Friends by friend nodes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8052 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f82f86387b
commit
55988a5796
@ -76,8 +76,7 @@ ShareDialog::ShareDialog(std::string filename, QWidget *parent)
|
||||
ui.shareflags_GB->setLayout(hbox) ;
|
||||
updateInfoMessage() ;
|
||||
|
||||
connect(groupselectionbox,SIGNAL(itemSelectionChanged()),this,SLOT(updateInfoMessage())) ;
|
||||
// connect(groupselectionbox,SIGNAL(itemSelectionChanged()),this,SLOT(groupSelectionChanged())) ;
|
||||
connect(groupselectionbox,SIGNAL(itemChanged(QListWidgetItem*)),this,SLOT(updateInfoMessage())) ;
|
||||
connect(groupflagsbox,SIGNAL(flagsChanged(FileStorageFlags)),this,SLOT(updateInfoMessage())) ;
|
||||
|
||||
if (!filename.empty())
|
||||
|
@ -156,19 +156,19 @@ QString GroupFlagsWidget::groupInfoString(FileStorageFlags flags, const QList<QS
|
||||
}
|
||||
|
||||
if(flags & DIR_FLAGS_BROWSABLE_OTHERS)
|
||||
res += tr("All your friends can browse this directory") + "\n" ;
|
||||
res += tr("All friend nodes can browse this directory") + "\n" ;
|
||||
else if(flags & DIR_FLAGS_BROWSABLE_GROUPS)
|
||||
if(!groupNames.empty())
|
||||
res += tr("Only friends in groups %1 can browse this directory").arg(groups_string) + "\n" ;
|
||||
res += tr("Only friends nodes in groups %1 can browse this directory").arg(groups_string) + "\n" ;
|
||||
else
|
||||
res += tr("No one can browse this directory") + "\n" ;
|
||||
else
|
||||
res += tr("No one can browse this directory") + "\n" ;
|
||||
|
||||
if(flags & DIR_FLAGS_NETWORK_WIDE_OTHERS)
|
||||
res += tr("All your friends can relay anonymous tunnels to this directory") ;
|
||||
res += tr("All friends nodes can relay anonymous tunnels to this directory") ;
|
||||
else if(flags & DIR_FLAGS_NETWORK_WIDE_GROUPS)
|
||||
res += tr("Only friends in groups ") + groups_string + tr(" can relay anonymous tunnels to this directory") ;
|
||||
res += tr("Only friends nodes in groups ") + groups_string + tr(" can relay anonymous tunnels to this directory") ;
|
||||
else
|
||||
res += tr("No one can anonymously access this directory.") ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user