diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2011-11-30 21:28:07 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2011-11-30 21:29:13 +0400 |
commit | 3f545aeedc8482fd4cbf64ad36d5079dc4e2b147 (patch) | |
tree | 608afd6d7f954da8a3d25a5886d014f6a4de7b14 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs | |
parent | ada981663bf23e81264df414a498991bc5cf58bd (diff) |
[Ide] Properly disable printing on Windows
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 | 4 |
1 files changed, 3 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 d6ab0a6fe4..b2b2a828eb 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs @@ -203,7 +203,9 @@ namespace MonoDevelop.Ide.Commands internal static bool CanPrint () { IPrintable print; - return IdeApp.Workbench.ActiveDocument != null + //HACK: disable printing on Windows while it doesn't work + return !Platform.IsWindows + && IdeApp.Workbench.ActiveDocument != null && (print = IdeApp.Workbench.ActiveDocument.GetContent<IPrintable> ()) != null && print.CanPrint; } |