Update OptionsAdvanced.cpp

fix
This commit is contained in:
offhub 2024-07-22 21:17:22 +03:00 committed by GitHub
parent 97ab216e9b
commit c2265af682
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -705,7 +705,7 @@ void COptionsWindow::UpdateJobOptions()
ui.chkNestedJobs->setEnabled(bUseJobObject);
qint64 iSingleMemory = ui.txtSingleMemory->text().toLongLong();
if (iSingleMemory == 0x0LL || iSingleMemory > 0x7FFFFFFFFFFFFFFFLL) {
if (!(iSingleMemory > 0x0LL && iSingleMemory <= 0x7FFFFFFFFFFFFFFFLL)) {
ui.lblSingleMemory->setText(tr("bytes (unlimited)"));
}
else {
@ -714,7 +714,7 @@ void COptionsWindow::UpdateJobOptions()
ui.txtSingleMemory->setEnabled(bUseJobObject);
qint64 iTotalMemory = ui.txtTotalMemory->text().toLongLong();
if (iTotalMemory == 0x0LL || iTotalMemory > 0x7FFFFFFFFFFFFFFFLL) {
if (!(iTotalMemory > 0x0LL && iTotalMemory <= 0x7FFFFFFFFFFFFFFFLL)) {
ui.lblTotalMemory->setText(tr("bytes (unlimited)"));
}
else {
@ -723,7 +723,7 @@ void COptionsWindow::UpdateJobOptions()
ui.txtTotalMemory->setEnabled(bUseJobObject);
qint64 iTotalNumber = ui.txtTotalNumber->text().toLongLong();
if (iTotalNumber == 0X0LL || iTotalNumber > 0xFFFFFFFFLL) {
if (!(iTotalNumber > 0x0LL && iTotalNumber <= 0xFFFFFFFFLL)) {
ui.lblTotalNumber->setText(tr("unlimited"));
}
else {