diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2011-07-27 19:44:24 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2011-07-27 19:44:24 +0400 |
commit | ee3421823555a114477035e7bf60ad7b8260896f (patch) | |
tree | ed3e55e50df5904b6cbdde9911d4e388a89096a4 /main | |
parent | c08de684ad1583872dc65293c6ba5871dbc5b763 (diff) |
Fix crash when a theme dir doesn't exist.
Diffstat (limited to 'main')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs index e7682f4d8e..58449072c8 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/IDEStyleOptionsPanel.cs @@ -112,7 +112,7 @@ namespace MonoDevelop.Ide.Gui.OptionPanels var themes = new HashSet<string> (); string gtkrc = System.IO.Path.Combine ("gtk-2.0", "gtkrc"); foreach (string themeDir in themeDirs) { - if (string.IsNullOrEmpty (themeDir) && !System.IO.Directory.Exists (themeDir)) + if (string.IsNullOrEmpty (themeDir) || !System.IO.Directory.Exists (themeDir)) continue; foreach (FilePath dir in System.IO.Directory.GetDirectories (themeDir)) { if (System.IO.File.Exists (dir.Combine (gtkrc))) |