2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Fix deleting shortcut items.

This commit is contained in:
John Preston
2024-02-27 14:20:30 +04:00
parent fb539b0f70
commit 23e22de6ec
2 changed files with 17 additions and 2 deletions

View File

@@ -164,6 +164,8 @@ private:
void pushReplyReturn(not_null<HistoryItem*> item);
void checkReplyReturns();
void confirmDeleteSelected();
void clearSelected();
void uploadFile(const QByteArray &fileContent, SendMediaType type);
bool confirmSendingFiles(
@@ -579,7 +581,7 @@ void ShortcutMessages::listCancelRequest() {
}
void ShortcutMessages::listDeleteRequest() {
//confirmDeleteSelected();
confirmDeleteSelected();
}
void ShortcutMessages::listTryProcessKeyInput(not_null<QKeyEvent*> e) {
@@ -803,6 +805,14 @@ void ShortcutMessages::checkReplyReturns() {
}
}
void ShortcutMessages::confirmDeleteSelected() {
ConfirmDeleteSelectedItems(_inner);
}
void ShortcutMessages::clearSelected() {
_inner->cancelSelection();
}
void ShortcutMessages::uploadFile(
const QByteArray &fileContent,
SendMediaType type) {