mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed selection of items on mode switching.
This commit is contained in:
parent
c5c707f0fd
commit
36e5056b59
1 changed files with 4 additions and 0 deletions
|
@ -171,6 +171,8 @@ std::shared_ptr<Scene> Paint::saveScene() const {
|
|||
}
|
||||
|
||||
void Paint::cancel() {
|
||||
_scene->clearSelection();
|
||||
|
||||
const auto filtered = _scene->items(Qt::AscendingOrder);
|
||||
if (filtered.empty()) {
|
||||
return;
|
||||
|
@ -192,6 +194,8 @@ void Paint::cancel() {
|
|||
}
|
||||
|
||||
void Paint::keepResult() {
|
||||
_scene->clearSelection();
|
||||
|
||||
for (const auto &item : _itemsToRemove) {
|
||||
_scene->removeItem(item);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue