diff --git a/src/worksheetentry.cpp b/src/worksheetentry.cpp --- a/src/worksheetentry.cpp +++ b/src/worksheetentry.cpp @@ -336,7 +336,7 @@ worksheet()->setModified(); } } else if (opt != DoNothing) { - if (!isEmpty() && !worksheet()->isLoadingFromFile() || type() != CommandEntry::Type) + if (!worksheet()->isLoadingFromFile() && (!isEmpty() || type() != CommandEntry::Type)) worksheet()->appendCommandEntry(); else focusEntry();