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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user