eric6/Network/IRC/IrcNetworkWidget.py

changeset 7946
6901746220fc
parent 7923
91e843545d9a
child 8043
0acf98cd089a
child 8143
2c730d5fd177
equal deleted inserted replaced
7945:76daafe10009 7946:6901746220fc
10 from PyQt5.QtCore import pyqtSlot, pyqtSignal, QPoint, QFileInfo, QUrl, QThread 10 from PyQt5.QtCore import pyqtSlot, pyqtSignal, QPoint, QFileInfo, QUrl, QThread
11 from PyQt5.QtGui import QDesktopServices 11 from PyQt5.QtGui import QDesktopServices
12 from PyQt5.QtWidgets import QWidget, QApplication, QMenu 12 from PyQt5.QtWidgets import QWidget, QApplication, QMenu
13 13
14 from E5Gui import E5MessageBox, E5FileDialog 14 from E5Gui import E5MessageBox, E5FileDialog
15 from E5Gui.E5Application import e5App
16 15
17 from .Ui_IrcNetworkWidget import Ui_IrcNetworkWidget 16 from .Ui_IrcNetworkWidget import Ui_IrcNetworkWidget
18 17
19 from .IrcUtilities import ircFilter, ircTimestamp 18 from .IrcUtilities import ircFilter, ircTimestamp
20 19
91 90
92 def autoConnect(self): 91 def autoConnect(self):
93 """ 92 """
94 Public method to perform the IRC auto connection. 93 Public method to perform the IRC auto connection.
95 """ 94 """
96 userInterface = e5App().getObject("UserInterface") 95 self.__autoConnect()
97 online = userInterface.isOnline()
98 self.connectButton.setEnabled(online)
99 userInterface.onlineStateChanged.connect(self.__onlineStateChanged)
100 if online:
101 self.__autoConnect()
102 96
103 def __autoConnect(self): 97 def __autoConnect(self):
104 """ 98 """
105 Private method to perform the IRC auto connection. 99 Private method to perform the IRC auto connection.
106 """ 100 """

eric ide

mercurial