Skip to content

Commit

Permalink
Fix panic closing app when a question is asked
Browse files Browse the repository at this point in the history
  • Loading branch information
fengalin committed Mar 28, 2020
1 parent bc916ba commit de6f553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ui/src/main_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ impl MainController {
}
self.abort_media_event_handler();

self.export_ctrl.cancel();
self.split_ctrl.cancel();

{
let size = self.window.get_size();
let paned_pos = self.playback_paned.get_position();
Expand Down
4 changes: 1 addition & 3 deletions ui/src/ui_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ impl UIEventSender {
response_sender,
});

response_receiver
.await
.expect("UI failed to receive response")
response_receiver.await.unwrap_or(gtk::ResponseType::Cancel)
}

pub fn cancel_select_media(&self) {
Expand Down

0 comments on commit de6f553

Please sign in to comment.