@ -8,7 +8,11 @@ RemoveFriendDialog::RemoveFriendDialog(QWidget *parent, const Friend *f)
setWindowFlags ( windowFlags ( ) & ~ Qt : : WindowContextHelpButtonHint ) ;
setWindowFlags ( windowFlags ( ) & ~ Qt : : WindowContextHelpButtonHint ) ;
setAttribute ( Qt : : WA_QuitOnClose , false ) ;
setAttribute ( Qt : : WA_QuitOnClose , false ) ;
ui . setupUi ( this ) ;
ui . setupUi ( this ) ;
ui . label - > setText ( ui . label - > text ( ) . replace ( " <name> " , f - > getDisplayedName ( ) . toHtmlEscaped ( ) ) ) ;
QString name = f - > getDisplayedName ( ) . toHtmlEscaped ( ) ;
QString text = tr ( " Are you sure you want to remove %1 from your contacts list? " )
. arg ( QString ( " <b>%1</b> " ) . arg ( name ) ) ;
ui . label - > setText ( text ) ;
auto removeButton = ui . buttonBox - > button ( QDialogButtonBox : : Ok ) ;
auto removeButton = ui . buttonBox - > button ( QDialogButtonBox : : Ok ) ;
auto cancelButton = ui . buttonBox - > button ( QDialogButtonBox : : Cancel ) ;
auto cancelButton = ui . buttonBox - > button ( QDialogButtonBox : : Cancel ) ;
removeButton - > setText ( tr ( " Remove " ) ) ;
removeButton - > setText ( tr ( " Remove " ) ) ;