Web+: missing NULL check in bookmark bar show/hide management.
This commit is contained in:
@@ -2650,8 +2650,11 @@ void
|
|||||||
BrowserWindow::_ShowBookmarkBar(bool show)
|
BrowserWindow::_ShowBookmarkBar(bool show)
|
||||||
{
|
{
|
||||||
// It is not allowed to show the bookmark bar when it is empty
|
// It is not allowed to show the bookmark bar when it is empty
|
||||||
if (show && fBookmarkBar->CountItems() <= 1)
|
if (show && (!fBookmarkBar || fBookmarkBar->CountItems() <= 1))
|
||||||
|
{
|
||||||
|
fBookmarkBarMenuItem->SetMarked(false);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fBookmarkBarMenuItem->SetMarked(show);
|
fBookmarkBarMenuItem->SetMarked(show);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user