diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-02-11 22:04:08 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2019-02-15 19:04:37 +0300 |
commit | 3e72506d5af6b3a867498ff39f80923b3c298e3f (patch) | |
tree | baed019d4bc0cbfb68992c8298f4007180c3611b /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs | |
parent | b142f7c8f7416f859a1a1aa21d2f3d257957c55a (diff) |
[Ide] Don't hardcode RootWindow as parent
Use new DesktopService's GetFocusedTopLevelWindow() to retrieve the
current active window and use that as parent.
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/737393
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs index 034e335011..d93e603610 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs @@ -82,7 +82,7 @@ namespace MonoDevelop.Ide.Commands protected override void Run () { var dlg = new OpenFileDialog (GettextCatalog.GetString ("File to Open"), MonoDevelop.Components.FileChooserAction.Open) { - TransientFor = IdeApp.Workbench.RootWindow, + TransientFor = DesktopService.GetFocusedTopLevelWindow (), ShowEncodingSelector = true, ShowViewerSelector = true, }; |