fix bug preventing the CPPlatformWindow's title to change once opened

This commit is contained in:
Antoine Mercadal committed 2011-09-21 14:00:35 +02:00
1 parent afa691376e
commit d0c59ee253
1 file changed
+2 -1
+2 -1
View File
@@ -264,7 +264,8 @@ var PrimaryPlatformWindow = NULL;
_title = aTitle;
#if PLATFORM(DOM)
if (_DOMWindow && _DOMWindow.document && (aWindow === [CPApp mainWindow]))
if (_DOMWindow && _DOMWindow.document
&& (aWindow === [CPApp mainWindow] || [aWindow platformWindow] !== [CPPlatformWindow primaryPlatformWindow]))
_DOMWindow.document.title = _title;
#endif
}