From bd65a373ec47e87a2387dd552cd5ee3c6b5b55db Mon Sep 17 00:00:00 2001
From: David Anderson <dvander@alliedmods.net>
Date: Tue, 19 Feb 2013 00:30:33 -0800
Subject: [PATCH] Fix back button.

Former-commit-id: 3a0937a2f75c279de7c113121c098b04a59fe9d1
---
 installer/installtool/MainWindow.xaml.cs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/installer/installtool/MainWindow.xaml.cs b/installer/installtool/MainWindow.xaml.cs
index 582da61a..1a727c9c 100644
--- a/installer/installtool/MainWindow.xaml.cs
+++ b/installer/installtool/MainWindow.xaml.cs
@@ -53,6 +53,8 @@ namespace installtool
             {
                 swap(welcomePanel_);
             }
+
+            backButton_.IsEnabled = currentPanel_ != welcomePanel_;
         }
 
         private void nextButton__Click(object sender, RoutedEventArgs e)
@@ -67,10 +69,7 @@ namespace installtool
                 swap(licensePanel_);
             }
 
-            if (currentPanel_ != welcomePanel_)
-            {
-                backButton_.IsEnabled = true;
-            }
+            backButton_.IsEnabled = true;
         }
     }
 }