From 814158610240cc43f94d0388e464849a94f16cb5 Mon Sep 17 00:00:00 2001 From: Graham Dawes Date: Mon, 11 Feb 2019 13:00:42 +0000 Subject: [PATCH] Correct restoration of tree icon logic --- src/qt/treectrl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qt/treectrl.cpp b/src/qt/treectrl.cpp index 984b0d653e..81e1b29145 100644 --- a/src/qt/treectrl.cpp +++ b/src/qt/treectrl.cpp @@ -426,6 +426,9 @@ private: imageIndex = states[wxTreeItemIcon_Selected]; } + if ( imageIndex == -1 ) + imageIndex = states[wxTreeItemIcon_Normal]; + return imageIndex; }