disable remove button for pokerth distributed styles
This commit is contained in:
@@ -937,6 +937,11 @@ void settingsDialogImpl::showCurrentGameTableStylePreview()
|
|||||||
|
|
||||||
//active the current selected item directly
|
//active the current selected item directly
|
||||||
setSelectedGameTableStyleActivated();
|
setSelectedGameTableStyleActivated();
|
||||||
|
|
||||||
|
//disable remove button for distributed styles
|
||||||
|
if(item->data(16).toInt() == POKERTH_DISTRIBUTED_STYLE) { pushButton_removeGameTableStyle->setDisabled(TRUE); }
|
||||||
|
else { pushButton_removeGameTableStyle->setDisabled(FALSE); }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1042,6 +1047,10 @@ void settingsDialogImpl::showCurrentCardDeckStylePreview()
|
|||||||
label_cardDeckStyleInfo->setText("<b>"+MaintainerName+":</b> "+style.getStyleMaintainerName()+"<br>"+maintainerEMailString+"<b>"+CreateDate+":</b> "+style.getStyleCreateDate()+"");
|
label_cardDeckStyleInfo->setText("<b>"+MaintainerName+":</b> "+style.getStyleMaintainerName()+"<br>"+maintainerEMailString+"<b>"+CreateDate+":</b> "+style.getStyleCreateDate()+"");
|
||||||
//active the current selected item directly
|
//active the current selected item directly
|
||||||
setSelectedCardDeckStyleActivated();
|
setSelectedCardDeckStyleActivated();
|
||||||
|
|
||||||
|
//disable remove button for distributed styles
|
||||||
|
if(item->data(16).toInt() == POKERTH_DISTRIBUTED_STYLE) { pushButton_removeCardDeckStyle->setDisabled(TRUE); }
|
||||||
|
else { pushButton_removeCardDeckStyle->setDisabled(FALSE); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user