closeevent fix
This commit is contained in:
@@ -2425,3 +2425,12 @@ void mainWindowImpl::blinkingStartButtonAnimationAction() {
|
|||||||
}
|
}
|
||||||
pushButton_break->setPalette(tempPalette);
|
pushButton_break->setPalette(tempPalette);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void mainWindowImpl::closeEvent(QCloseEvent *event) {
|
||||||
|
|
||||||
|
mySession->terminateNetworkClient();
|
||||||
|
if (myServerGuiInterface.get()) myServerGuiInterface->getSession().terminateNetworkServer();
|
||||||
|
|
||||||
|
event->accept();
|
||||||
|
|
||||||
|
}
|
||||||
@@ -199,6 +199,8 @@ public slots:
|
|||||||
void networkError(int, int);
|
void networkError(int, int);
|
||||||
void networkStart(int, int, int, int);
|
void networkStart(int, int, int, int);
|
||||||
|
|
||||||
|
void closeEvent(QCloseEvent*);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
boost::shared_ptr<GuiInterface> myServerGuiInterface;
|
boost::shared_ptr<GuiInterface> myServerGuiInterface;
|
||||||
|
|||||||
Reference in New Issue
Block a user