1
0
Fork 0

GUI: hide main window on close

This commit is contained in:
Mr. eXoDia 2014-06-21 03:33:42 +02:00
parent 04fadb5f46
commit a3a9b5c63e
1 changed files with 2 additions and 0 deletions

View File

@ -172,7 +172,9 @@ DWORD WINAPI MainWindow::closeThread(void* ptr)
void MainWindow::closeEvent(QCloseEvent* event)
{
hide(); //hide main window
mCloseDialog->show();
mCloseDialog->setFocus();
CloseHandle(CreateThread(0, 0, closeThread, this, 0, 0));
if(bClose)
event->accept();