add missing nil check #15

This commit is contained in:
piotr
2021-08-27 01:21:41 +02:00
parent 4818dc3358
commit e601316480
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -146,7 +146,9 @@ func setUpCategoriesButtonBox() *gtk.EventBox {
w := b.GetAllocatedWidth()
b.SetImagePosition(gtk.POS_TOP)
b.SetSizeRequest(w, 0)
fileSearchResultWrapper.Hide()
if fileSearchResultWrapper != nil {
fileSearchResultWrapper.Hide()
}
})
}
}