Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2011-11-30 21:28:07 +0400
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2011-11-30 21:29:13 +0400
commit3f545aeedc8482fd4cbf64ad36d5079dc4e2b147 (patch)
tree608afd6d7f954da8a3d25a5886d014f6a4de7b14 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parentada981663bf23e81264df414a498991bc5cf58bd (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.cs4
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;
}