mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
MessageComposer:
- Removed standard subject "No Title" - Corrected tabstops - Set focus to subject after asking "Do you want to send the message without a subject ?" git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4005 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
23782a9d28
commit
3f67782ce1
2 changed files with 114 additions and 57 deletions
|
@ -951,8 +951,6 @@ MessageComposer *MessageComposer::newMsg(const std::string &msgId /*= ""*/)
|
|||
}
|
||||
|
||||
msgComposer->ui.msgText->document()->setModified(false);
|
||||
} else {
|
||||
msgComposer->insertTitleText(tr("No Title"));
|
||||
}
|
||||
|
||||
msgComposer->calculateTitle();
|
||||
|
@ -1130,6 +1128,7 @@ bool MessageComposer::sendMessage_internal(bool bDraftbox)
|
|||
/* check for existing title */
|
||||
if (bDraftbox == false && mi.title.empty()) {
|
||||
if (QMessageBox::warning(this, tr("RetroShare"), tr("Do you want to send the message without a subject ?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::No) {
|
||||
ui.titleEdit->setFocus();
|
||||
return false; // Don't send with an empty subject
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue