Only advise to Edit -> Undo if undo stack is not empty.
parent
86315b2b1f
commit
54d8957bfe
|
@ -330,11 +330,12 @@ void SolveSpaceUI::GenerateAll(int first, int last, bool andFindFree) {
|
||||||
"These include: \n"
|
"These include: \n"
|
||||||
" %d request%s\n"
|
" %d request%s\n"
|
||||||
" %d constraint%s\n"
|
" %d constraint%s\n"
|
||||||
" %d group%s\n\n"
|
" %d group%s"
|
||||||
"Choose Edit -> Undo to undelete all elements.",
|
"%s",
|
||||||
deleted.requests, deleted.requests == 1 ? "" : "s",
|
deleted.requests, deleted.requests == 1 ? "" : "s",
|
||||||
deleted.constraints, deleted.constraints == 1 ? "" : "s",
|
deleted.constraints, deleted.constraints == 1 ? "" : "s",
|
||||||
deleted.groups, deleted.groups == 1 ? "" : "s");
|
deleted.groups, deleted.groups == 1 ? "" : "s",
|
||||||
|
undo.cnt > 0 ? "\n\nChoose Edit -> Undo to undelete all elements." : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
deleted = {};
|
deleted = {};
|
||||||
|
|
Loading…
Reference in New Issue