Prevent seeking while playing a trace.

This commit is contained in:
Ben Vanik 2015-11-22 17:44:24 -08:00
parent e35fdff632
commit a7f6c1a09c
1 changed files with 3 additions and 1 deletions

View File

@ -446,7 +446,9 @@ void TraceViewer::DrawCommandListUI() {
break; break;
} }
if (ImGui::Selectable(label, &is_selected)) { if (ImGui::Selectable(label, &is_selected)) {
player_->SeekCommand(i); if (!player_->playing_trace()) {
player_->SeekCommand(i);
}
} }
ImGui::SameLine(column_width - 60.0f); ImGui::SameLine(column_width - 60.0f);
ImGui::Text("%d", i); ImGui::Text("%d", i);