mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed selection of items on mode switching.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user