Index: /trunk/src/VBox/Additions/x11/VBoxClient/hostversion.cpp
===================================================================
--- /trunk/src/VBox/Additions/x11/VBoxClient/hostversion.cpp	(revision 23948)
+++ /trunk/src/VBox/Additions/x11/VBoxClient/hostversion.cpp	(revision 23949)
@@ -126,7 +126,7 @@
 
 # ifdef VBOX_WITH_GUEST_PROPS
+        uint32_t uGuestPropSvcClientID;
         if (RT_SUCCESS(rc))
         {
-            uint32_t uGuestPropSvcClientID;
             rc = VbglR3GuestPropConnect(&uGuestPropSvcClientID);
             if (RT_FAILURE(rc))
@@ -136,34 +136,31 @@
         if (RT_SUCCESS(rc))
         {
+            char *pszHostVersion;
+            char *pszGuestVersion;
+            bool bUpdate;
+
+            rc = VbglR3HostVersionCheckForUpdate(uGuestPropSvcClientID, &bUpdate, &pszHostVersion, &pszGuestVersion);
             if (RT_SUCCESS(rc))
             {
-                char *pszHostVersion;
-                char *pszGuestVersion;
-                bool bUpdate;
+                if (bUpdate)
+                {
+                    char szMsg[256];
+                    char szTitle[64];
 
-                rc = VbglR3HostVersionCheckForUpdate(uGuestPropSvcClientID, &bUpdate, &pszHostVersion, &pszGuestVersion);
-                if (RT_SUCCESS(rc))
-                {
-                    if (bUpdate)
-                    {
-                        char szMsg[256];
-                        char szTitle[64];
+                    /** @todo add some translation macros here */
+                    RTStrPrintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!");
+                    RTStrPrintf(szMsg, sizeof(szMsg), "Your guest is currently running the Guest Additions version %s. "
+                                                      "We recommend updating to the latest version (%s) by choosing the "
+                                                      "install option from the Devices menu.", pszGuestVersion, pszHostVersion);
+                    rc = showNotify(szTitle, szMsg);
+                    if (RT_FAILURE(rc))
+                        Log(("VBoxClient: Could not show version notifier tooltip! rc = %d\n", rc));
+                }
 
-                        /** @todo add some translation macros here */
-                        RTStrPrintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!");
-                        RTStrPrintf(szMsg, sizeof(szMsg), "Your guest is currently running the Guest Additions version %s. "
-                                                          "We recommend updating to the latest version (%s) by choosing the "
-                                                          "install option from the Devices menu.", pszGuestVersion, pszHostVersion);
-                        rc = showNotify(szTitle, szMsg);
-                        if (RT_FAILURE(rc))
-                            Log(("VBoxClient: Could not show version notifier tooltip! rc = %d\n", rc));
-                    }
+                /* Store host version to not notify again */
+                rc = VbglR3HostVersionLastCheckedStore(uGuestPropSvcClientID, pszHostVersion);
 
-                    /* Store host version to not notify again */
-                    rc = VbglR3HostVersionLastCheckedStore(uGuestPropSvcClientID, pszHostVersion);
-
-                    VbglR3GuestPropReadValueFree(pszHostVersion);
-                    VbglR3GuestPropReadValueFree(pszGuestVersion);
-                }
+                VbglR3GuestPropReadValueFree(pszHostVersion);
+                VbglR3GuestPropReadValueFree(pszGuestVersion);
             }
             VbglR3GuestPropDisconnect(uGuestPropSvcClientID);
