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:
authorMike Krüger <mkrueger@xamarin.com>2013-10-24 09:55:44 +0400
committerMike Krüger <mkrueger@xamarin.com>2013-10-24 09:56:01 +0400
commit3ceed28b8a851e2d194e7b86aa249da45b18d150 (patch)
treef34ee183f0c5fd921cdebfec42ac41e18115c3aa /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parent5837332ce23918cf1dc2862371c9508cddfdea4c (diff)
Fixed 'Bug 15435 - Printing problem'.
Printing doesn't seem to work on windows without the [STAThread] attribute.
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.cs3
1 files changed, 3 insertions, 0 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 78bdb5f2e2..0a3903bdd9 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
@@ -217,6 +217,9 @@ namespace MonoDevelop.Ide.Commands
internal static bool CanPrint ()
{
+ if (Platform.IsWindows)
+ return false;
+
IPrintable print;
return IdeApp.Workbench.ActiveDocument != null
&& (print = IdeApp.Workbench.ActiveDocument.GetContent<IPrintable> ()) != null