Added a confirm to the delete history action.

Added the RetroShare icon to the password input window.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4066 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-02-27 21:47:49 +00:00
parent 01f4244f24
commit 28ebbf0b2e
5 changed files with 62 additions and 46 deletions

View file

@ -833,8 +833,10 @@ void PopupChatDialog::on_actionClear_Chat_History_triggered()
void PopupChatDialog::on_actionDelete_Chat_History_triggered()
{
on_actionClear_Chat_History_triggered();
historyKeeper.clear();
if ((QMessageBox::question(this, "RetroShare", tr("Do you really want to physically delete the history?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes)) == QMessageBox::Yes) {
on_actionClear_Chat_History_triggered();
historyKeeper.clear();
}
}
void PopupChatDialog::updatePeerAvatar(const std::string& peer_id)