Fix SEGV in FileCatalog::(show|hide)ToolBar() (fixes #4916)

This commit is contained in:
Flössie 2018-12-11 21:48:14 +01:00
parent 8073c3dfde
commit 0051e8f2ac

View File

@ -2522,7 +2522,7 @@ bool FileCatalog::handleShortcutKey (GdkEventKey* event)
void FileCatalog::showToolBar()
{
if (!options.FileBrowserToolbarSingleRow) {
if (hbToolBar1STB) {
hbToolBar1STB->show();
}
@ -2531,7 +2531,7 @@ void FileCatalog::showToolBar()
void FileCatalog::hideToolBar()
{
if (!options.FileBrowserToolbarSingleRow) {
if (hbToolBar1STB) {
hbToolBar1STB->hide();
}