Browse Source

Optimization

Source commit: 78124f7350d5667f982f432f8c894574d79fa357
Martin Prikryl 6 years ago
parent
commit
dfdbdc4414
1 changed files with 5 additions and 1 deletions
  1. 5 1
      source/core/SessionData.cpp

+ 5 - 1
source/core/SessionData.cpp

@@ -524,11 +524,15 @@ bool __fastcall TSessionData::IsSame(const TSessionData * Default, bool Advanced
   #define PROPERTY_HANDLER(P, F) \
     if (F##P != Default->F##P) \
     { \
+      Result = false; \
       if (DifferentProperties != NULL) \
       { \
         DifferentProperties->Add(#P); \
       } \
-      Result = false; \
+      else \
+      { \
+        return Result; \
+      } \
     }
 
   if (!AdvancedOnly)