| 746 | } |
| 747 | |
| 748 | void BaseWorkspace::ExitClientWithDialog() { |
| 749 | QString msg = tcTr("id_exit_client"); |
| 750 | if (auto plugin = plugin_manager_->GetFileTransferPlugin(); plugin) { |
| 751 | if (plugin->HasProcessingTasks()) { |
| 752 | msg = tcTr("id_file_transfer_busy") + msg; |
| 753 | } |
| 754 | } |
| 755 | TcDialog dialog(tcTr("id_exit"), msg, this); |
| 756 | if (dialog.exec() == kDoneOk) { |
| 757 | if (media_record_plugin_) { |
| 758 | media_record_plugin_->EndRecord(); |
| 759 | } |
| 760 | Exit(); |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | void BaseWorkspace::dragEnterEvent(QDragEnterEvent *event) { |
| 765 | event->accept(); |
no test coverage detected