From 4633085bb435421592cbd98cc998d9a4e5198303 Mon Sep 17 00:00:00 2001 From: Plamen Petrov Date: Mon, 18 Feb 2008 00:57:04 +0200 Subject: [PATCH] Fix update_tree_view() to actually fall back to slow locate-and-add when needed. The fix is a missing "else break;" statement on the end of the fast tree rebuild path, which does not allow kmk to enter an endless loop, and resort to the slow speed tree leaf adding mode. --- src/kmk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kmk.cpp b/src/kmk.cpp index be7b159..a4257e9 100644 --- a/src/kmk.cpp +++ b/src/kmk.cpp @@ -1772,7 +1772,7 @@ void kmk::update_tree_view() added = TRUE; break; } - else if( cur_vlItem->parent() ) cur_vlItem = (KListViewItem*) cur_vlItem->parent(); + else if( cur_vlItem->parent() ) cur_vlItem = (KListViewItem*) cur_vlItem->parent(); else break; } if( added ) continue; else if( s->dbg() & (KMK_DBG_CAT_MEM_OPS | KMK_DBG_OTHER ) ) -- 2.11.4.GIT