diff --git a/qrenderdoc/Windows/PythonShell.cpp b/qrenderdoc/Windows/PythonShell.cpp index b4ffdf636..9d15c1504 100644 --- a/qrenderdoc/Windows/PythonShell.cpp +++ b/qrenderdoc/Windows/PythonShell.cpp @@ -1108,7 +1108,8 @@ void PythonShell::on_execute_clicked() appendText(ui->interactiveOutput, command + lit("\n")); - history.push_front(command); + if(!command.trimmed().isEmpty()) + history.push_front(command); historyidx = -1; ui->lineInput->clear();