← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3249: Add a command to disconnect a hub

 

------------------------------------------------------------
revno: 3249
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Sun 2013-03-31 18:34:44 +0200
message:
  Add a command to disconnect a hub
modified:
  changelog.txt
  win32/HubFrame.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'changelog.txt'
--- changelog.txt	2013-03-21 23:03:56 +0000
+++ changelog.txt	2013-03-31 16:34:44 +0000
@@ -1,6 +1,7 @@
 * Rotate the icon while DC++ is loading (poy)
 * [L#243727] Allow expanding merged search results (poy)
 * Merge connections, downloads and uploads in the same list (poy)
+* Add a command to disconnect a hub (poy)
 
 -- 0.811 2013-03-04 --
 * Fix status bar parts when the window is too small (poy)

=== modified file 'win32/HubFrame.cpp'
--- win32/HubFrame.cpp	2013-03-26 22:03:28 +0000
+++ win32/HubFrame.cpp	2013-03-31 16:34:44 +0000
@@ -1250,6 +1250,7 @@
 
 	menu->appendItem(T_("&Reconnect\tCtrl+R"), [this] { handleReconnect(); }, WinUtil::menuIcon(IDI_RECONNECT));
 	menu->appendItem(T_("Copy &address to clipboard"), [this] { handleCopyHub(); });
+	menu->appendItem(T_("&Disconnect"), [this] { client->disconnect(true); }, WinUtil::menuIcon(IDI_HUB_OFF));
 
 	prepareMenu(menu, UserCommand::CONTEXT_HUB, url);