[chronojump] Safer splashWin destroy



commit f03493ac59f611c1a4dd0a9099001f44debe5140
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Feb 26 16:59:16 2015 +0100

    Safer splashWin destroy

 src/chronojump.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/chronojump.cs b/src/chronojump.cs
index 64f15ed..26ec1c3 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -623,7 +623,8 @@ public class ChronoJump
        private void on_splash_ended(object o, EventArgs args) {
                LogB.Information("splash screen going to END");
                fakeSplashButton.Clicked -= new EventHandler(on_splash_ended);
-               splashWin.Destroy();
+               if(splashWin != null)
+                       splashWin.Destroy();
                LogB.Information("splash screen ENDED!");
                readMessageToStart();
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]