Skip to content

Commit

Permalink
Docking Find in Files: Fixed the hanging bug
Browse files Browse the repository at this point in the history
- Fixed the hanging bug and at least another less serious bug, where the Find in Files window simply did not appear.

[#1 state:needs_hack]

Signed-off-by: Jocelyn Legault <jocelynlegault@gmail.com>
  • Loading branch information
joce authored and Thell Fowler committed Oct 26, 2009
1 parent 95efc72 commit 391526c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1730,15 +1730,12 @@ void FindReplaceDlg::findAllIn(InWhat op)
if (::SendMessage(_hParent, cmdid, 0, 0))
{
wsprintf(_findAllResultStr, TEXT("%d hits"), _findAllResult);
if (_findAllResult)
{
focusOnFinder();
}
else
getFocus(); // no hits
focusOnFinder();
}
else // error - search folder doesn't exist
{
::SendMessage(_hSelf, WM_NEXTDLGCTL, (WPARAM)::GetDlgItem(_hSelf, IDD_FINDINFILES_DIR_COMBO), TRUE);
}
}


Expand Down

0 comments on commit 391526c

Please sign in to comment.