--- a/E5Gui/E5SideBar.py Sun Jan 31 16:15:16 2010 +0000 +++ b/E5Gui/E5SideBar.py Sun Jan 31 17:11:22 2010 +0000 @@ -154,10 +154,8 @@ if obj == self.__tabBar: if evt.type() == QEvent.MouseButtonPress: pos = evt.pos() - index = -1 for i in range(self.__tabBar.count()): if self.__tabBar.tabRect(i).contains(pos): - index = i break if i == self.__tabBar.currentIndex(): @@ -480,7 +478,7 @@ data = QByteArray(state) stream = QDataStream(data, QIODevice.ReadOnly) - version = stream.readUInt16() + stream.readUInt16() # version minimized = stream.readBool() if minimized: @@ -547,4 +545,4 @@ @param event reference to the event (QEvent) """ if self.__autoHide and not self.__hasFocus and not self.isMinimized(): - self.shrink() \ No newline at end of file + self.shrink()