зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1191112 part 2 - Set the destroyed flag on nsCocoaWindow when destroyed. r=smichaud
--HG-- extra : source : d06d4277d3b203f2053c2aadaed7e5beb801023f
This commit is contained in:
Родитель
62dc5a030c
Коммит
3b13439b32
|
@ -500,6 +500,10 @@ NS_IMETHODIMP nsCocoaWindow::CreatePopupContentView(const nsIntRect &aRect)
|
|||
|
||||
NS_IMETHODIMP nsCocoaWindow::Destroy()
|
||||
{
|
||||
if (mOnDestroyCalled)
|
||||
return NS_OK;
|
||||
mOnDestroyCalled = true;
|
||||
|
||||
// If we don't hide here we run into problems with panels, this is not ideal.
|
||||
// (Bug 891424)
|
||||
Show(false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче