diff --git a/src/LogExpert.UI/Services/TabControllerService/TabController.cs b/src/LogExpert.UI/Services/TabControllerService/TabController.cs
index 2e4f1293..b91a1a24 100644
--- a/src/LogExpert.UI/Services/TabControllerService/TabController.cs
+++ b/src/LogExpert.UI/Services/TabControllerService/TabController.cs
@@ -455,19 +455,19 @@ protected virtual void Dispose (bool disposing)
}
///
- /// Gets all LogWindow instances from the DockPanel's Contents collection.
+ /// Gets all LogWindow instances currently held by the DockPanel's panes, in the order their tab strips display
+ /// them. Panes of every dock state are enumerated, so floating windows are included.
///
/// Read-only list of all LogWindows in the DockPanel
- public IReadOnlyList GetAllWindowsFromDockPanel ()
- {
- return !_initialized || _dockPanel == null
- ? []
- : _dockPanel.Panes
- .Where(pane => pane.DockState == DockState.Document)
- .SelectMany(pane => pane.Contents.OfType())
- .ToList()
- .AsReadOnly();
- }
+ public IReadOnlyList GetAllWindowsFromDockPanel ()
+ {
+ return !_initialized || _dockPanel == null
+ ? []
+ : _dockPanel.Panes
+ .SelectMany(pane => pane.DisplayingContents.OfType())
+ .ToList()
+ .AsReadOnly();
+ }
#endregion
}