diff --git a/retroshare-gui/src/gui/AddLinksDialog.cpp b/retroshare-gui/src/gui/AddLinksDialog.cpp
index f15d0121f..af1958b99 100644
--- a/retroshare-gui/src/gui/AddLinksDialog.cpp
+++ b/retroshare-gui/src/gui/AddLinksDialog.cpp
@@ -48,7 +48,6 @@ AddLinksDialog::AddLinksDialog(QString url, QWidget *parent)
connect( ui.anonBox, SIGNAL( stateChanged ( int ) ), this, SLOT( load ( void ) ) );
- ui.linkLineEdit->setReadOnly(true);
ui.linkLineEdit->setText(url);
RetroShareLink link(url);
diff --git a/retroshare-gui/src/gui/AddLinksDialog.ui b/retroshare-gui/src/gui/AddLinksDialog.ui
index a2dfaf19b..04b9363a4 100644
--- a/retroshare-gui/src/gui/AddLinksDialog.ui
+++ b/retroshare-gui/src/gui/AddLinksDialog.ui
@@ -7,7 +7,7 @@
0
0
614
- 429
+ 415
diff --git a/retroshare-gui/src/gui/LinksDialog.cpp b/retroshare-gui/src/gui/LinksDialog.cpp
index d7f9141f7..f02e2f130 100644
--- a/retroshare-gui/src/gui/LinksDialog.cpp
+++ b/retroshare-gui/src/gui/LinksDialog.cpp
@@ -27,6 +27,7 @@
#include "LinksDialog.h"
#include "RetroShareLink.h"
+#include "AddLinksDialog.h"
#include
#include
#include
@@ -67,6 +68,8 @@ LinksDialog::LinksDialog(QWidget *parent)
/* add button */
connect( ui.addButton, SIGNAL( clicked( void ) ), this, SLOT( addLinkComment( void ) ) );
connect( ui.expandButton, SIGNAL( clicked( void ) ), this, SLOT( toggleWindows( void ) ) );
+
+ connect( ui.pushButton, SIGNAL( clicked( ) ), this, SLOT( addNewLink( ) ) );
connect( ui.linkTreeWidget, SIGNAL( currentItemChanged ( QTreeWidgetItem *, QTreeWidgetItem * ) ),
this, SLOT( changedItem ( QTreeWidgetItem *, QTreeWidgetItem * ) ) );
@@ -1043,3 +1046,13 @@ void LinksDialog::anchorClicked (const QUrl& link )
QDesktopServices::openUrl(QUrl(newAddress));
}
}
+
+void LinksDialog::addNewLink()
+{
+
+ AddLinksDialog *nAddLinksDialog = new AddLinksDialog("");
+
+ nAddLinksDialog->show();
+
+ /* window will destroy itself! */
+}
diff --git a/retroshare-gui/src/gui/LinksDialog.h b/retroshare-gui/src/gui/LinksDialog.h
index d30cb30d6..cf55ea134 100644
--- a/retroshare-gui/src/gui/LinksDialog.h
+++ b/retroshare-gui/src/gui/LinksDialog.h
@@ -66,6 +66,8 @@ private slots:
void checkUpdate();
void anchorClicked (const QUrl &);
+
+ void addNewLink();
private:
diff --git a/retroshare-gui/src/gui/LinksDialog.ui b/retroshare-gui/src/gui/LinksDialog.ui
index 2d867b778..59055342b 100644
--- a/retroshare-gui/src/gui/LinksDialog.ui
+++ b/retroshare-gui/src/gui/LinksDialog.ui
@@ -556,6 +556,25 @@ p, li { white-space: pre-wrap; }
+ -
+
+
+ QPushButton:hover {
+border: 1px solid #CCCCCC;
+}
+
+
+ Add new link
+
+
+
+ :/images/edit_add24.png:/images/edit_add24.png
+
+
+ true
+
+
+