mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 09:41:29 -05: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) ;
|
ui.shareflags_GB->setLayout(hbox) ;
|
||||||
updateInfoMessage() ;
|
updateInfoMessage() ;
|
||||||
|
|
||||||
connect(groupselectionbox,SIGNAL(itemSelectionChanged()),this,SLOT(updateInfoMessage())) ;
|
connect(groupselectionbox,SIGNAL(itemChanged(QListWidgetItem*)),this,SLOT(updateInfoMessage())) ;
|
||||||
// connect(groupselectionbox,SIGNAL(itemSelectionChanged()),this,SLOT(groupSelectionChanged())) ;
|
|
||||||
connect(groupflagsbox,SIGNAL(flagsChanged(FileStorageFlags)),this,SLOT(updateInfoMessage())) ;
|
connect(groupflagsbox,SIGNAL(flagsChanged(FileStorageFlags)),this,SLOT(updateInfoMessage())) ;
|
||||||
|
|
||||||
if (!filename.empty())
|
if (!filename.empty())
|
||||||
|
@ -156,19 +156,19 @@ QString GroupFlagsWidget::groupInfoString(FileStorageFlags flags, const QList<QS
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(flags & DIR_FLAGS_BROWSABLE_OTHERS)
|
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)
|
else if(flags & DIR_FLAGS_BROWSABLE_GROUPS)
|
||||||
if(!groupNames.empty())
|
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
|
else
|
||||||
res += tr("No one can browse this directory") + "\n" ;
|
res += tr("No one can browse this directory") + "\n" ;
|
||||||
else
|
else
|
||||||
res += tr("No one can browse this directory") + "\n" ;
|
res += tr("No one can browse this directory") + "\n" ;
|
||||||
|
|
||||||
if(flags & DIR_FLAGS_NETWORK_WIDE_OTHERS)
|
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)
|
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
|
else
|
||||||
res += tr("No one can anonymously access this directory.") ;
|
res += tr("No one can anonymously access this directory.") ;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user