From: <dos...@us...> - 2013-07-05 20:44:21
|
Revision: 4597 http://sourceforge.net/p/mp-plugins/code/4597 Author: doskabouter Date: 2013-07-05 20:44:18 +0000 (Fri, 05 Jul 2013) Log Message: ----------- minor cleanup Modified Paths: -------------- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs Modified: trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs =================================================================== --- trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs 2013-07-04 20:59:11 UTC (rev 4596) +++ trunk/plugins/BrowseTheWeb/Source/BrowseTheWeb/GUIPlugin.cs 2013-07-05 20:44:18 UTC (rev 4597) @@ -308,23 +308,30 @@ } string loadFav = StartupLink; - - if (String.IsNullOrEmpty(webBrowser.Document.Domain)) + if (!String.IsNullOrEmpty(loadFav)) { - if ((settings.UseHome) && (string.IsNullOrEmpty(loadFav))) - { - webBrowser.Navigate(settings.HomePage); - MyLog.debug("load home page " + settings.HomePage); - } - } - - if (!string.IsNullOrEmpty(loadFav)) - { webBrowser.Navigate(loadFav); MyLog.debug("load favorite " + loadFav); StartupLink = string.Empty; } + else + { + if (String.IsNullOrEmpty(webBrowser.Document.Domain)) + { + if (settings.UseHome) + { + webBrowser.Navigate(settings.HomePage); + MyLog.debug("load home page " + settings.HomePage); + } + else + { + webBrowser.Navigate("about:blank"); + MyLog.debug("load about:blank"); + } + } + } + #endregion osd_linkID.Location = new System.Drawing.Point((GUIGraphicsContext.form.Width / 2) - (osd_linkID.Width / 2), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |