--- a/eric7/Cooperation/Connection.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/Cooperation/Connection.py Sat May 22 18:51:46 2021 +0200 @@ -10,8 +10,8 @@ from PyQt6.QtCore import pyqtSignal, QTimer, QTime, QByteArray from PyQt6.QtNetwork import QTcpSocket, QHostInfo -from E5Gui import E5MessageBox -from E5Gui.E5Application import e5App +from E5Gui import EricMessageBox +from E5Gui.EricApplication import ericApp import Preferences @@ -214,7 +214,7 @@ not Preferences.getCooperation("AutoAcceptConnections")): # don't ask for reverse connections or # if we shall accept automatically - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( None, self.tr("New Connection"), self.tr("""<p>Accept connection from """ @@ -228,7 +228,7 @@ if self.__client is not None: chatWidget = self.__client.chatWidget() if chatWidget is not None and not chatWidget.isVisible(): - e5App().getObject( + ericApp().getObject( "UserInterface").activateCooperationViewer() if not self.__isGreetingMessageSent: