Fixed issue #1611: Changing Search criteria with empty search field refreshes log...
authorSven Strickroth <email@cs-ware.de>
Mon, 28 Jan 2013 22:24:17 +0000 (28 23:24 +0100)
committerSven Strickroth <email@cs-ware.de>
Mon, 28 Jan 2013 22:24:17 +0000 (28 23:24 +0100)
Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/Changelog.txt
src/TortoiseProc/LogDlg.cpp

index 44250cd..1d25da9 100644 (file)
@@ -5,6 +5,9 @@ Released: unreleased
  * Log dialog can revert selected files to parent revision\r
  * Fixed issue #1500: Support git merge --log option\r
 \r
+== Bug Fix ==\r
+ * Fixed issue #1611: Changing Search criteria with empty search field refreshes log content\r
+\r
 = Release 1.8.0.0 =\r
 Released: 2013-01-27\r
 \r
index e9a62a5..fdb2e78 100644 (file)
@@ -1388,7 +1388,9 @@ LRESULT CLogDlg::OnClickedInfoIcon(WPARAM /*wParam*/, LPARAM lParam)
                                m_LogList.m_SelectedFilters ^= selection;\r
                                SetFilterCueText();\r
                        }\r
-                       SetTimer(LOGFILTER_TIMER, 1000, NULL);\r
+                       // Reload only if a search text is entered\r
+                       if (!m_LogList.m_sFilterText.IsEmpty())\r
+                               SetTimer(LOGFILTER_TIMER, 1000, NULL);\r
                }\r
        }\r
        return 0L;\r