mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
fixed some UI bugs in Mail
This commit is contained in:
parent
ea4df6306b
commit
6a2886da40
@ -660,7 +660,7 @@ void RsMessageModel::setMessages(const std::list<Rs::Msgs::MsgInfoSummary>& msgs
|
||||
for(auto it(msgs.begin());it!=msgs.end();++it)
|
||||
{
|
||||
mMessagesMap[(*it).msgId] = mMessages.size();
|
||||
mMessages.push_back(*it);
|
||||
mMessages.push_back(*it);
|
||||
}
|
||||
|
||||
// now update prow for all posts
|
||||
|
@ -917,6 +917,8 @@ void MessagesDialog::changeBox(int box_row)
|
||||
insertMsgTxtAndFiles(ui.messageTreeWidget->currentIndex());
|
||||
ui.messageTreeWidget->setPlaceholderText(placeholderText);
|
||||
ui.messageTreeWidget->setColumnHidden(RsMessageModel::COLUMN_THREAD_READ,box_row!=ROW_INBOX);
|
||||
ui.messageTreeWidget->setColumnHidden(RsMessageModel::COLUMN_THREAD_STAR,box_row==ROW_OUTBOX);
|
||||
ui.messageTreeWidget->setColumnHidden(RsMessageModel::COLUMN_THREAD_SPAM,box_row==ROW_OUTBOX);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1152,13 +1154,11 @@ void MessagesDialog::removemessage()
|
||||
|
||||
bool doDelete = false;
|
||||
int listrow = ui.listWidget->currentRow();
|
||||
if (listrow == ROW_TRASHBOX) {
|
||||
if (listrow == ROW_TRASHBOX || listrow == ROW_OUTBOX)
|
||||
doDelete = true;
|
||||
|
||||
if (QApplication::keyboardModifiers() & Qt::ShiftModifier)
|
||||
doDelete = true;
|
||||
} else {
|
||||
if (QApplication::keyboardModifiers() & Qt::ShiftModifier) {
|
||||
doDelete = true;
|
||||
}
|
||||
}
|
||||
|
||||
foreach (const QString& m, selectedMessages) {
|
||||
if (doDelete) {
|
||||
|
Loading…
Reference in New Issue
Block a user