diff --git a/uppsrc/GridCtrl/GridCtrl.cpp b/uppsrc/GridCtrl/GridCtrl.cpp index ec1ac717a..5100bc701 100644 --- a/uppsrc/GridCtrl/GridCtrl.cpp +++ b/uppsrc/GridCtrl/GridCtrl.cpp @@ -291,7 +291,7 @@ void GridCtrl::StdToolBar(Bar &bar) bar.Add(d && !ctrls, t_("Duplicate"), GridImg::Duplicate(), StdDuplicate); if(removing) - bar.Add(d/* && !IsNewRow()*/, t_("Delete "), GridImg::Delete(), StdRemove); + bar.Add(d && (keep_last_row ? GetCount() > 1 : true), t_("Delete "), GridImg::Delete(), StdRemove); if(editing) {