2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Disable saveAs in media viewer if restricted.

This commit is contained in:
John Preston
2021-12-30 14:58:34 +03:00
parent 4cbfcc8dbc
commit 3623fb1f9a

View File

@@ -1515,6 +1515,9 @@ void OverlayWidget::notifyFileDialogShown(bool shown) {
}
void OverlayWidget::saveAs() {
if (showCopyRestriction()) {
return;
}
QString file;
if (_document) {
const auto &location = _document->location(true);