[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/network/ktorrent
From:       Joris Guisson <joris.guisson () gmail ! com>
Date:       2009-12-06 11:54:17
Message-ID: 1260100457.397893.26209.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1059359 by guisson:

Add magnet protocol file so ktorrent will get called by konq and improve support for \
magnet in search plugin

 M  +1 -0      ktorrent/CMakeLists.txt  
 A             ktorrent/magnet.protocol  
 M  +7 -0      plugins/search/htmlpart.cpp  


--- trunk/extragear/network/ktorrent/ktorrent/CMakeLists.txt #1059358:1059359
@@ -86,6 +86,7 @@
 install(TARGETS ktorrent ${INSTALL_TARGETS_DEFAULT_ARGS})
 install(FILES ktorrent.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
 install(FILES ktorrentplugin.desktop  DESTINATION  ${SERVICETYPES_INSTALL_DIR} )
+install(FILES magnet.protocol  DESTINATION  ${SERVICES_INSTALL_DIR} )
 install(FILES ktorrentui.rc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )
 install(FILES ktorrent.notifyrc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )
 
--- trunk/extragear/network/ktorrent/plugins/search/htmlpart.cpp #1059358:1059359
@@ -89,6 +89,13 @@
 				home();
 			return;
 		}
+		else if (u.protocol() == "magnet")
+		{
+			int ret = KMessageBox::questionYesNo(0,i18n("Do you want to download this magnet \
link ?")); +			if (ret == KMessageBox::Yes)
+				openTorrent(u);
+			return;
+		}
 		
 		KIO::TransferJob* j = 0;
 		if (barg.doPost())


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic