From: Rejean Loyer Date: Fri, 16 Sep 2011 12:10:35 +0000 (-0400) Subject: libede:FileSystemBox: fixed call NotifyOpenNode on folders when navigateFolders is... X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=ede;a=commitdiff_plain;h=47c68b7269adbb7d1b22fefb8b4cecbd3afb1c0c libede:FileSystemBox: fixed call NotifyOpenNode on folders when navigateFolders is true. make sure NotifyDoubleClick allows ListBox to expand tree nodes. --- diff --git a/libede/src/FileSystemBox.ec b/libede/src/FileSystemBox.ec index 24c443d..e184693 100644 --- a/libede/src/FileSystemBox.ec +++ b/libede/src/FileSystemBox.ec @@ -475,8 +475,9 @@ private: bool NotifyDoubleClick(ListBox listBox, int x, int y, Modifiers mods) { + bool result = !(selection && selection.type.isFolder && bits.navigateFolders); OpenNode(); - return false; + return result; } bool NotifyKeyDown(ListBox listBox, DataRow row, Key key, unichar ch) @@ -494,12 +495,8 @@ private: { bool result; if(selection && selection.type.isFolder && bits.navigateFolders) - { property::path = selection.path; - result = true; - } - else - result = NotifyNodeOpen(this.master, this, selection); + result = NotifyNodeOpen(this.master, this, selection); return result; }