Merge pull request #1988 from PhenomRetroShare/Fix_MessageDeleteLast

Fix Message Delete Last to clear widget.
This commit is contained in:
defnax 2020-05-30 22:12:13 +02:00 committed by GitHub
commit 54364c488e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1105,7 +1105,10 @@ void MessagesDialog::removemessage()
void MessagesDialog::messageRemoved() void MessagesDialog::messageRemoved()
{ {
if (lastSelectedIndex.isValid())
ui.messageTreeWidget->setCurrentIndex(lastSelectedIndex); ui.messageTreeWidget->setCurrentIndex(lastSelectedIndex);
else
insertMsgTxtAndFiles(QModelIndex());
} }
void MessagesDialog::undeletemessage() void MessagesDialog::undeletemessage()