tastudio: unbreak things if user cancels movie conversion on file open

This commit is contained in:
feos 2017-10-07 23:17:02 +03:00
parent 94170687a4
commit 7529570ab8
1 changed files with 1 additions and 2 deletions

View File

@ -72,11 +72,10 @@ namespace BizHawk.Client.EmuHawk
} }
else if (ofd.FileName.EndsWith(".bkm") || ofd.FileName.EndsWith(".bk2")) // todo: proper extention iteration else if (ofd.FileName.EndsWith(".bkm") || ofd.FileName.EndsWith(".bk2")) // todo: proper extention iteration
{ {
Mainform.StartNewMovie(MovieService.Get(ofd.FileName), false);
var result1 = MessageBox.Show("This is a regular movie, a new project must be created from it, in order to use in TAStudio\nProceed?", "Convert movie", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); var result1 = MessageBox.Show("This is a regular movie, a new project must be created from it, in order to use in TAStudio\nProceed?", "Convert movie", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (result1 == DialogResult.OK) if (result1 == DialogResult.OK)
{ {
Mainform.StartNewMovie(MovieService.Get(ofd.FileName), false);
ConvertCurrentMovieToTasproj(); ConvertCurrentMovieToTasproj();
StartNewMovieWrapper(false); StartNewMovieWrapper(false);
SetUpColumns(); SetUpColumns();