| 114 | } |
| 115 | |
| 116 | void StoreProgress::closeEvent(QCloseEvent* event) |
| 117 | { |
| 118 | //Wait the thread ends. |
| 119 | if (_store_session->is_busy()){ |
| 120 | _store_session->cancel(); |
| 121 | event->ignore(); |
| 122 | return; |
| 123 | } |
| 124 | |
| 125 | _store_session->session()->set_saving(false); |
| 126 | _store_session->session()->broadcast_msg(DSV_MSG_SAVE_COMPLETE); |
| 127 | |
| 128 | delete this; |
| 129 | } |
| 130 | |
| 131 | void StoreProgress::keyPressEvent(QKeyEvent *event) |
| 132 | { |
nothing calls this directly
no test coverage detected