Bug 641460 - Fennec stays minimized when closing multiple tabs on Maemo / MeeGo

This commit is contained in:
Tatiana Meshkova
2011-05-03 19:40:02 +03:00
parent e124ec733a
commit f816e3d63b
2 changed files with 6 additions and 0 deletions

View File

@@ -588,6 +588,9 @@ nsWindow::SetSizeMode(PRInt32 aMode)
nsresult rv;
LOG(("nsWindow::SetSizeMode [%p] %d\n", (void *)this, aMode));
if (aMode != nsSizeMode_Minimized) {
GetViewWidget()->activateWindow();
}
// Save the requested state.
rv = nsBaseWidget::SetSizeMode(aMode);