disable remove button for pokerth distributed styles

This commit is contained in:
doitux
2009-06-07 12:01:47 +00:00
parent 5f3369432a
commit 1aad2b7290
@@ -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); }
} }
} }