mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 13:30:36 -04:00
Fixed up minor bug in Links Cloud:
conflict between anonymous link box, and context menus fixed. Moved Links Cloud from Unfinished, to Main Window. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@563 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
39f4fa3d6c
commit
87b7bfadb5
3 changed files with 10 additions and 6 deletions
|
@ -576,7 +576,7 @@ void LinksDialog::updateComments(std::string rid, std::string pid)
|
|||
ui.linkLineEdit->setText("");
|
||||
ui.linkTextEdit->setText("");
|
||||
ui.scoreBox->setCurrentIndex(ScoreToIndex(0));
|
||||
mLinkId = "";
|
||||
mLinkId = rid; /* must be set for Context Menu */
|
||||
|
||||
/* disable comment + score */
|
||||
ui.scoreBox->setEnabled(false);
|
||||
|
@ -652,7 +652,7 @@ void LinksDialog::addLinkComment( void )
|
|||
QString comment = ui.linkTextEdit->toPlainText();
|
||||
int32_t score = IndexToScore(ui.scoreBox->currentIndex());
|
||||
|
||||
if (mLinkId == "")
|
||||
if ((mLinkId == "") || (ui.anonBox->isChecked()))
|
||||
{
|
||||
if ((link == "") || (title == ""))
|
||||
{
|
||||
|
@ -667,7 +667,7 @@ void LinksDialog::addLinkComment( void )
|
|||
/* add it either way */
|
||||
if (ui.anonBox->isChecked())
|
||||
{
|
||||
rsRanks->anonRankMsg(mLinkId, link.toStdWString(), title.toStdWString());
|
||||
rsRanks->anonRankMsg("", link.toStdWString(), title.toStdWString());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue