← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3181: remove a copy func in transfers, obsoleted by new copy menus

 

------------------------------------------------------------
revno: 3181
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2013-01-24 00:24:26 +0100
message:
  remove a copy func in transfers, obsoleted by new copy menus
modified:
  win32/TransferView.cpp
  win32/TransferView.h


--
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 'win32/TransferView.cpp'
--- win32/TransferView.cpp	2013-01-21 18:43:48 +0000
+++ win32/TransferView.cpp	2013-01-23 23:24:26 +0000
@@ -196,7 +196,6 @@
 		menu->appendSeparator();
 
 		menu->appendItem(T_("&Force attempt"), [this] { handleForce(); });
-		menu->appendItem(T_("Copy &nick to clipboard"), [this] { handleCopyNick(); });
 		menu->appendSeparator();
 		menu->appendItem(T_("&Disconnect"), [this] { handleDisconnect(); });
 
@@ -297,15 +296,6 @@
 	}
 }
 
-void TransferView::handleCopyNick() {
-	int i = -1;
-
-	/// @todo Fix when more items are selected
-	while( (i = connections->getNext(i, LVNI_SELECTED)) != -1) {
-		WinUtil::setClipboard(WinUtil::getNicks(connections->getData(i)->getUser()));
-	}
-}
-
 namespace { void drawProgress(HDC hdc, const dwt::Rectangle& rcItem, int item, int column, const tstring& text, double pos, bool download) {
 	// draw something nice...
 	COLORREF barBase = download ? SETTING(DOWNLOAD_BG_COLOR) : SETTING(UPLOAD_BG_COLOR);

=== modified file 'win32/TransferView.h'
--- win32/TransferView.h	2013-01-18 21:28:38 +0000
+++ win32/TransferView.h	2013-01-23 23:24:26 +0000
@@ -259,7 +259,6 @@
 	bool handleDownloadsMenu(dwt::ScreenCoordinate pt);
 	void handleDestroy();
 	void handleForce();
-	void handleCopyNick();
 	void handleDisconnect();
 	void runUserCommand(const UserCommand& uc);
 	bool handleKeyDown(int c);