Skip to content

Commit

Permalink
Editor - Improve group trees deselect path check (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 authored Jul 13, 2021
1 parent 68af186 commit b92b0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/editor/functions/fnc_handleLoad.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ _display displayAddEventHandler ["KeyDown", {call FUNC(handleKeyDown)}];
_ctrl ctrlAddEventHandler ["MouseButtonDown", {
if (RscDisplayCurator_sections select 0 == 1) then {
private _ctrlTree = call EFUNC(common,getActiveTree);
private _pathLength = count tvCurSel _ctrlTree;
private _path = tvCurSel _ctrlTree;

if (_pathLength > 0 && {_pathLength < 4}) then {
if (_path isNotEqualTo [] && {_ctrlTree tvCount _path > 0}) then {
_ctrlTree tvSetCurSel [-1];
};
};
Expand Down

0 comments on commit b92b0e9

Please sign in to comment.