Browse Source

When Abort was clicked on automatic updates email verification prompt, the email was still accepted

Source commit: c1f135e8a309437bda416dbfc79e1c1274cf3684
Martin Prikryl 8 years ago
parent
commit
22739ec66d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      source/forms/Preferences.cpp

+ 3 - 3
source/forms/Preferences.cpp

@@ -2396,9 +2396,7 @@ void __fastcall TPreferencesDialog::UpdatesAuthenticationEmailEditExit(TObject *
 {
   if (FVerifiedUpdatesAuthenticationEmail != UpdatesAuthenticationEmailEdit->Text)
   {
-    FVerifiedUpdatesAuthenticationEmail = UpdatesAuthenticationEmailEdit->Text;
-
-    if (!FVerifiedUpdatesAuthenticationEmail.IsEmpty())
+    if (!UpdatesAuthenticationEmailEdit->Text.IsEmpty())
     {
       TUpdatesConfiguration Updates = SaveUpdates();
 
@@ -2429,6 +2427,8 @@ void __fastcall TPreferencesDialog::UpdatesAuthenticationEmailEditExit(TObject *
         }
       }
     }
+
+    FVerifiedUpdatesAuthenticationEmail = UpdatesAuthenticationEmailEdit->Text;
   }
 }
 //---------------------------------------------------------------------------