← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~linuxdcpp-team/linuxdcpp/trunk] Rev 355: Search by TTH now opens in a new search tab

 

------------------------------------------------------------
revno: 355
fixes bug(s): https://launchpad.net/bugs/494392
committer: Razzloss <razzloss@xxxxxxxxx>
branch nick: master
timestamp: Mon 2010-03-15 22:46:38 +0200
message:
  Search by TTH now opens in a new search tab
added:
  .bzrignore
modified:
  Changelog.txt
  linux/search.cc


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

Your team LinuxDC++ Team is subscribed to branch lp:linuxdcpp.
To unsubscribe from this branch go to https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk/+edit-subscription.
=== added file '.bzrignore'
--- .bzrignore	1970-01-01 00:00:00 +0000
+++ .bzrignore	2010-03-15 20:46:38 +0000
@@ -0,0 +1,4 @@
+build
+tags
+core
+linuxdcpp

=== modified file 'Changelog.txt'
--- Changelog.txt	2010-03-11 20:40:41 +0000
+++ Changelog.txt	2010-03-15 20:46:38 +0000
@@ -45,6 +45,7 @@
 [2010-02-01] lp#502673: Fixed an issue with the GUI randomly freezing. (Steven)
 [2010-02-28] Added a setting to disable fast hashing method. (Steven)
 [2010-03-11] lp#361735: Improved magnet link support. Support for passing commands to running LinuxDC++ client. (Razzloss)
+[2010-03-15] lp#494392: Search by TTH should open in a new tab. (Razzloss)
 
 *** 1.0.3 2009-02-01 ***
 [2008-08-10] lp#256236: Fixed a crash on startup when using auto-open options.

=== modified file 'linux/search.cc'
--- linux/search.cc	2009-11-02 03:24:22 +0000
+++ linux/search.cc	2010-03-15 20:46:38 +0000
@@ -1287,7 +1287,11 @@
 			{
 				string tth = s->resultView.getString(&iter, "TTH");
 				if (!tth.empty())
-					s->putValue_gui(tth, 0, SearchManager::SIZE_DONTCARE, SearchManager::TYPE_TTH);
+				{
+
+					Search *ns = WulforManager::get()->getMainWindow()->addSearch_gui();
+					ns->putValue_gui(tth, 0, SearchManager::SIZE_DONTCARE, SearchManager::TYPE_TTH);
+				}
 			}
 			gtk_tree_path_free(path);
 		}