git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@281 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
parent
19b5776ba4
commit
d2946cac3b
@ -7,8 +7,7 @@
|
||||
#include <signal.h>
|
||||
|
||||
void my_handler(int s){
|
||||
printf("Ctrl-C caught! Quitting application...\n");
|
||||
QApplication::closeAllWindows();
|
||||
printf("\nCtrl-C caught! Quitting application...\n");
|
||||
QApplication::quit();
|
||||
}
|
||||
|
||||
@ -133,13 +132,15 @@ int main(int argc, char* argv[])
|
||||
mainWindow.startProcessing();
|
||||
}
|
||||
|
||||
|
||||
if(!guiMode)
|
||||
{
|
||||
// Catch ctrl-c to close the gui
|
||||
struct sigaction sigIntHandler;
|
||||
sigIntHandler.sa_handler = my_handler;
|
||||
sigemptyset(&sigIntHandler.sa_mask);
|
||||
sigIntHandler.sa_flags = 0;
|
||||
sigaction(SIGINT, &sigIntHandler, NULL);
|
||||
}
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ void CameraTcpClient::displayError(QAbstractSocket::SocketError socketError)
|
||||
|
||||
void CameraTcpClient::connectionLost()
|
||||
{
|
||||
printf("[WARNING] CameraTcp: Connection lost!\n");
|
||||
//printf("[WARNING] CameraTcp: Connection lost!\n");
|
||||
}
|
||||
|
||||
Camera::Camera(QObject * parent) :
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user