From 6f5b650847148ca99a62824ac7fc36341873bafa Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 29 Jun 2013 11:55:53 +0200 Subject: [PATCH] TortoiseGitBlame: Correctly handle closing of find dialog if no revision is loaded W/o this the find dialog could not be opened again after closing. Signed-off-by: Sven Strickroth --- src/TortoiseGitBlame/TortoiseGitBlameView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TortoiseGitBlame/TortoiseGitBlameView.cpp b/src/TortoiseGitBlame/TortoiseGitBlameView.cpp index 8f5f909cd..c314ec309 100644 --- a/src/TortoiseGitBlame/TortoiseGitBlameView.cpp +++ b/src/TortoiseGitBlame/TortoiseGitBlameView.cpp @@ -1822,9 +1822,6 @@ LRESULT CTortoiseGitBlameView::OnFindDialogMessage(WPARAM /*wParam*/, LPARAM /*l { ASSERT(m_pFindDialog != NULL); - if (m_CommitHash.empty()) - return 0; - // If the FR_DIALOGTERM flag is set, // invalidate the handle identifying the dialog box. if (m_pFindDialog->IsTerminating()) @@ -1833,6 +1830,9 @@ LRESULT CTortoiseGitBlameView::OnFindDialogMessage(WPARAM /*wParam*/, LPARAM /*l return 0; } + if (m_CommitHash.empty()) + return 0; + // If the FR_FINDNEXT flag is set, // call the application-defined search routine // to search for the requested string. -- 2.11.4.GIT