diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 962fff8a..a90b45b1 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -452,8 +452,8 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent) connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!! //Nachrichten Thread-Save - connect(this, SIGNAL(SignalNetClientSuccess(int)), myConnectToServerDialog, SLOT(refresh(int))); - connect(this, SIGNAL(SignalNetClientError(int, int)), myConnectToServerDialog, SLOT(error(int, int))); + connect(this, SIGNAL(SignalNetClientSuccess(int)), this, SLOT(refreshConnectToServerDialog(int))); + connect(this, SIGNAL(SignalNetClientError(int, int)), this, SLOT(errorConnectToServerDialog(int, int))); } @@ -1914,3 +1914,6 @@ void mainWindowImpl::switchToolBox() { else { groupBox_tools->hide(); } } + +void mainWindowImpl::refreshConnectToServerDialog(int actionID) { myConnectToServerDialog->refresh(actionID); } +void mainWindowImpl::errorConnectToServerDialog(int errorID, int osErrorID) { myConnectToServerDialog->error(errorID, osErrorID); } diff --git a/src/gui/qt/mainwindow/mainwindowimpl.h b/src/gui/qt/mainwindow/mainwindowimpl.h index a2910abb..2fa65201 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.h +++ b/src/gui/qt/mainwindow/mainwindowimpl.h @@ -47,6 +47,7 @@ class QColor; class mainWindowImpl: public QMainWindow, public Ui::mainWindow { Q_OBJECT + public: mainWindowImpl(QMainWindow *parent = 0 ); @@ -85,6 +86,10 @@ public: void setSpeeds(); +signals: + void SignalNetClientSuccess(int actionID); + void SignalNetClientError(int errorID, int osErrorID); + public slots: void setGameSpeed(const int theValue) { guiGameSpeed = theValue; setSpeeds(); } // Achtung Faktor 10!!! @@ -168,12 +173,8 @@ public slots: void paintStartSplash(); -signals: - - void SignalNetClientSuccess(int actionID); - void SignalNetClientError(int errorID, int osErrorID); - - + void refreshConnectToServerDialog(int actionID); + void errorConnectToServerDialog(int errorID, int osErrorID); private: @@ -277,6 +278,8 @@ private: QColor active; QColor inactive; QColor highlight; + +friend class GuiWrapper; }; #endif