Squashed 'DCPlugin/' changes from ef48301..60c4858
60c4858 Fixed template number: cannot be 0 git-subtree-dir: DCPlugin git-subtree-split: 60c48588b09dd680d6d92ab6944904dc6a28ca90
This commit is contained in:
parent
1f0f7da128
commit
84729f90fc
@ -415,7 +415,7 @@ bool hwapi::dc_updatePrinterTemplate(enum FileTypeJson type,
|
|||||||
int nrOfTemplate,
|
int nrOfTemplate,
|
||||||
QString const &fname) const {
|
QString const &fname) const {
|
||||||
if ((type == FileTypeJson::PRINTER) &&
|
if ((type == FileTypeJson::PRINTER) &&
|
||||||
(nrOfTemplate >= 0 && nrOfTemplate <= 32)) {
|
(nrOfTemplate >= 1 && nrOfTemplate <= 32)) {
|
||||||
|
|
||||||
int nTry = 50;
|
int nTry = 50;
|
||||||
while (!sys_ready4sending()) { // wait max. 5 seconds
|
while (!sys_ready4sending()) { // wait max. 5 seconds
|
||||||
|
Loading…
Reference in New Issue
Block a user