mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -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
@ -95,9 +95,9 @@ ApplicationWindow::ApplicationWindow(QWidget* parent, Qt::WFlags flags)
|
|||||||
/* Create the config pages and actions */
|
/* Create the config pages and actions */
|
||||||
QActionGroup *grp = new QActionGroup(this);
|
QActionGroup *grp = new QActionGroup(this);
|
||||||
|
|
||||||
LinksDialog *linksDialog = NULL;
|
// LinksDialog *linksDialog = NULL;
|
||||||
ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
|
// ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
|
||||||
createPageAction(QIcon(IMAGE_TRANSFERS), tr("Links Cloud"), grp));
|
// createPageAction(QIcon(IMAGE_TRANSFERS), tr("Links Cloud"), grp));
|
||||||
|
|
||||||
ChannelsDialog *channelsDialog = NULL;
|
ChannelsDialog *channelsDialog = NULL;
|
||||||
ui.stackPages->add(channelsDialog = new ChannelsDialog(ui.stackPages),
|
ui.stackPages->add(channelsDialog = new ChannelsDialog(ui.stackPages),
|
||||||
|
@ -576,7 +576,7 @@ void LinksDialog::updateComments(std::string rid, std::string pid)
|
|||||||
ui.linkLineEdit->setText("");
|
ui.linkLineEdit->setText("");
|
||||||
ui.linkTextEdit->setText("");
|
ui.linkTextEdit->setText("");
|
||||||
ui.scoreBox->setCurrentIndex(ScoreToIndex(0));
|
ui.scoreBox->setCurrentIndex(ScoreToIndex(0));
|
||||||
mLinkId = "";
|
mLinkId = rid; /* must be set for Context Menu */
|
||||||
|
|
||||||
/* disable comment + score */
|
/* disable comment + score */
|
||||||
ui.scoreBox->setEnabled(false);
|
ui.scoreBox->setEnabled(false);
|
||||||
@ -652,7 +652,7 @@ void LinksDialog::addLinkComment( void )
|
|||||||
QString comment = ui.linkTextEdit->toPlainText();
|
QString comment = ui.linkTextEdit->toPlainText();
|
||||||
int32_t score = IndexToScore(ui.scoreBox->currentIndex());
|
int32_t score = IndexToScore(ui.scoreBox->currentIndex());
|
||||||
|
|
||||||
if (mLinkId == "")
|
if ((mLinkId == "") || (ui.anonBox->isChecked()))
|
||||||
{
|
{
|
||||||
if ((link == "") || (title == ""))
|
if ((link == "") || (title == ""))
|
||||||
{
|
{
|
||||||
@ -667,7 +667,7 @@ void LinksDialog::addLinkComment( void )
|
|||||||
/* add it either way */
|
/* add it either way */
|
||||||
if (ui.anonBox->isChecked())
|
if (ui.anonBox->isChecked())
|
||||||
{
|
{
|
||||||
rsRanks->anonRankMsg(mLinkId, link.toStdWString(), title.toStdWString());
|
rsRanks->anonRankMsg("", link.toStdWString(), title.toStdWString());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
#define IMAGE_PEERS ":/images/peers_24x24.png"
|
#define IMAGE_PEERS ":/images/peers_24x24.png"
|
||||||
#define IMAGE_SEARCH ":/images/filefind.png"
|
#define IMAGE_SEARCH ":/images/filefind.png"
|
||||||
#define IMAGE_TRANSFERS ":/images/ktorrent32.png"
|
#define IMAGE_TRANSFERS ":/images/ktorrent32.png"
|
||||||
|
#define IMAGE_LINKS ":/images/ktorrent.png"
|
||||||
#define IMAGE_FILES ":/images/folder_green.png"
|
#define IMAGE_FILES ":/images/folder_green.png"
|
||||||
#define IMAGE_CHANNELS ":/images/channels.png"
|
#define IMAGE_CHANNELS ":/images/channels.png"
|
||||||
#define IMAGE_PREFERENCES ":/images/settings16.png"
|
#define IMAGE_PREFERENCES ":/images/settings16.png"
|
||||||
@ -169,6 +170,9 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
|||||||
ui.stackPages->add(messagesDialog = new MessagesDialog(ui.stackPages),
|
ui.stackPages->add(messagesDialog = new MessagesDialog(ui.stackPages),
|
||||||
createPageAction(QIcon(IMAGE_MESSAGES), tr("Messages"), grp));
|
createPageAction(QIcon(IMAGE_MESSAGES), tr("Messages"), grp));
|
||||||
|
|
||||||
|
LinksDialog *linksDialog = NULL;
|
||||||
|
ui.stackPages->add(linksDialog = new LinksDialog(ui.stackPages),
|
||||||
|
createPageAction(QIcon(IMAGE_LINKS), tr("Links Cloud"), grp));
|
||||||
|
|
||||||
|
|
||||||
#ifdef RS_RELEASE_VERSION
|
#ifdef RS_RELEASE_VERSION
|
||||||
|
Loading…
Reference in New Issue
Block a user