mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Disable saveAs in media viewer if restricted.
This commit is contained in:
parent
4cbfcc8dbc
commit
3623fb1f9a
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue