B2023-089: Search results – reselection of search results step that was deleted causes unexpected results when redisplayed in editor.
This commit is contained in:
parent
c9b0590be4
commit
7312330448
@ -1833,7 +1833,10 @@ namespace Volian.Controls.Library
|
||||
if (_ItemInfo != null)
|
||||
{
|
||||
_OpenDocFromSearch = true;
|
||||
DisplayTabItem dti = _TabControl.OpenItem(_ItemInfo); // open the corresponding procedure text
|
||||
// B2023-089: selecting a deleted item from search results shows deleted step in the editor when the StepTabItem for
|
||||
// the deleted item was displayed but is not the active StepTabItem. Use its procedure if it was deleted
|
||||
ItemInfo openItem = _ItemInfo.IsDeleted ? ItemInfo.Get(_ItemInfo.MyProcedure == null ? _ItemInfo.ItemID : _ItemInfo.MyProcedure.ItemID) : _ItemInfo;
|
||||
DisplayTabItem dti = _TabControl.OpenItem(openItem); // open the corresponding procedure text
|
||||
if (dti != null)
|
||||
{
|
||||
if (dti.MyDSOTabPanel != null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user