Add exit command to stress tester.
[dcpomatic.git] / src / wx / player_stress_tester.cc
index c0e6e8443f2c5640876e613a17250b7ce2931005..726db2a70b9144578ed6c1acee37e6ba5049c4c1 100644 (file)
@@ -67,6 +67,8 @@ Command::Command (string line)
                }
                type = SEEK;
                int_param = raw_convert<int>(bits[1]);
+       } else if (bits[0] == "E") {
+               type = EXIT;
        }
 }
 
@@ -156,6 +158,9 @@ PlayerStressTester::check_commands ()
                        _controls->seek (_current_command->int_param);
                        ++_current_command;
                        break;
+               case Command::EXIT:
+                       wxTheApp->GetTopWindow()->Destroy();
+                       break;
        }
 }