commit:924fc4da5643fb24b86a1a61e5a04649e6623979
author:Chip Black
committer:Chip Black
date:Mon Jun 8 02:43:05 2009 -0500
parents:84890340eccbe66e303780a992fe152356974394
Fix: Focus startup WebView
diff --git a/WebThing.cs b/WebThing.cs
line changes: +3/-4
index 9429099..fd2eb99
--- a/WebThing.cs
+++ b/WebThing.cs
@@ -97,10 +97,9 @@ namespace bytex64.WebThing {
 
             // Create a new, default WebThingView if one has not already
             // been created.
-            if (Tabs.NPages == 0) {
-                WebThingView default_tab = NewTab();
-                default_tab.WebView.GrabFocus();
-            }
+            if (Tabs.NPages == 0)
+                OpenUriTab("http://dominionofawesome.com/");
+            WebView.GrabFocus();
 
             Application.Run();
         }

diff --git a/plugins/DefaultPage.cs b/plugins/DefaultPage.cs
line changes: +0/-2
index 5ec5bdd..3e99bb1
--- a/plugins/DefaultPage.cs
+++ b/plugins/DefaultPage.cs
@@ -11,8 +11,6 @@ public class DefaultPage : WebThingPlugin {
             string[] pages = Regex.Split(Config.Options["DefaultPage"], @"\s+");
             foreach (string page in pages)
                 wt.OpenUriTab(page);
-        } else {
-            wt.OpenUriTab("http://dominionofawesome.com/");
         }
     }
 }