Fixed an issue in the IRC widget when disconnecting from the server. 5_3_x

Sat, 09 Mar 2013 15:43:46 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Mar 2013 15:43:46 +0100
branch
5_3_x
changeset 2471
36eb585339fc
parent 2468
957f6e1d97e1
child 2473
c9f484ea061b

Fixed an issue in the IRC widget when disconnecting from the server.
(grafted from 20d2166280bb4ea4b1af2802a3b917751ee6bea1)

Network/IRC/IrcWidget.py file | annotate | diff | comparison | revisions
--- a/Network/IRC/IrcWidget.py	Sat Mar 09 13:42:57 2013 +0100
+++ b/Network/IRC/IrcWidget.py	Sat Mar 09 15:43:46 2013 +0100
@@ -354,6 +354,11 @@
             self.channelsWidget.removeTab(self.channelsWidget.indexOf(channel))
             channel.deleteLater()
             channel = None
+        
+        self.channelsWidget.addTab(self.__emptyLabel, "")
+        self.__emptyLabel.show()
+        self.__leaveButton.setEnabled(False)
+        self.channelsWidget.setTabsClosable(False)
     
     def __closeChannel(self, name):
         """

eric ide

mercurial