OSDN Git Service

Don't cause exception when destroying tabs on shutdown.
authorLatif Khalifa <latifer@streamgrid.net>
Thu, 8 Sep 2011 23:52:11 +0000 (23:52 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Thu, 8 Sep 2011 23:52:11 +0000 (23:52 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@1141 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Consoles/TabsConsole.cs

index 59a5515..e8d8c64 100644 (file)
@@ -459,7 +459,7 @@ namespace Radegast
         /// </summary>
         public void SelectDefaultTab()
         {
-            if (TabExists("chat"))
+            if (IsHandleCreated && TabExists("chat"))
                 tabs["chat"].Select();
         }