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