2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Added draft menu to EditCaptionBox to open photo editor.

This commit is contained in:
23rd
2021-02-20 10:52:48 +03:00
parent 671a06c407
commit d1b6cf1fae
7 changed files with 111 additions and 31 deletions

View File

@@ -166,7 +166,11 @@ void Paint::initDrawing() {
}
std::shared_ptr<QGraphicsScene> Paint::saveScene() const {
return _scene;
return _scene->items().empty()
? nullptr
: ranges::none_of(_scene->items(), &QGraphicsItem::isVisible)
? nullptr
: _scene;
}
void Paint::cancel() {