Author Topic: Fixed annoying FindDlg bugs  (Read 7184 times)

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: Fixed annoying FindDlg bugs
« Reply #15 on: December 29, 2005, 06:48:05 am »
I know, but I'm talking of supporting cross-compilation without wine.
And about supporting from C::B the following environments: cross-mingw32, cygwin, cross-cygwin, msys.

Offline duncanka

  • Multiple posting newcomer
  • *
  • Posts: 53
Re: Fixed annoying FindDlg bugs
« Reply #16 on: March 12, 2006, 04:09:40 pm »
I've fixed another minor error in the FindDlg code (I think): if you switched to the "Find in Files" tab before typing the text to search for, the dialog did not save the search term in the search history.  I've created a patch, but I can't test it at the moment.  Could someone test whether the patch below (the forum wouldn't let me attach it as a file) works before I submit it to the tracker?

Code: Diff
  1. Index: finddlg.cpp
  2. ===================================================================
  3. --- finddlg.cpp (revision 2173)
  4. +++ finddlg.cpp (working copy)
  5. @@ -128,7 +128,7 @@
  6.  
  7.         // save last searches (up to 10)
  8.      wxComboBox* combo = XRCCTRL(*this, "cmbFind1", wxComboBox);
  9. -       if (!m_Complete)
  10. +       if ( IsFindInFiles() )
  11.          combo = XRCCTRL(*this, "cmbFind2", wxComboBox);
  12.      wxArrayString previous;
  13.      for (int i = 0; (i < combo->GetCount()) && (i < 10); ++i)
  14.