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:
csoler 2015-03-19 20:39:59 +00:00
parent f82f86387b
commit 55988a5796
2 changed files with 5 additions and 6 deletions

View File

@ -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())

View File

@ -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.") ;