Make sidebar display in the event that the windows integration dialog appeared.

b = 119975; r = law; sr = dveditz
This commit is contained in:
sgehani%netscape.com 2006-09-14 06:02:29 +00:00
Родитель 423a678ad4
Коммит 44be7a2b4b
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -1399,13 +1399,21 @@ function URLBarKeyupHandler(aEvent)
function checkForDefaultBrowser()
{
const NS_WINHOOKS_CONTRACTID = "@mozilla.org/winhooks;1";
var dialogShown = false;
if (NS_WINHOOKS_CONTRACTID in Components.classes) {
try {
Components.classes[NS_WINHOOKS_CONTRACTID]
.getService(Components.interfaces.nsIWindowsHooks)
.checkSettings(window);
dialogShown = Components.classes[NS_WINHOOKS_CONTRACTID]
.getService(Components.interfaces.nsIWindowsHooks)
.checkSettings(window);
} catch(e) {
}
if (dialogShown)
{
// Force the sidebar to build since the windows
// integration dialog may have come up.
SidebarRebuild();
}
}
}