--- a/E5Gui/E5SideBar.py Sun Feb 26 15:16:35 2017 +0100 +++ b/E5Gui/E5SideBar.py Sun Feb 26 15:54:20 2017 +0100 @@ -653,11 +653,13 @@ @param old reference to the widget, that lost focus (QWidget or None) @param now reference to the widget having the focus (QWidget or None) """ - self.__hasFocus = self.isAncestorOf(now) - if self.__autoHide and not self.__hasFocus and not self.isMinimized(): - self.shrink() - elif self.__autoHide and self.__hasFocus and self.isMinimized(): - self.expand() + if isinstance(now, QWidget): + self.__hasFocus = self.isAncestorOf(now) + if self.__autoHide and not self.__hasFocus and \ + not self.isMinimized(): + self.shrink() + elif self.__autoHide and self.__hasFocus and self.isMinimized(): + self.expand() def enterEvent(self, event): """