mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-23 22:03:54 +03:00
view:unblock events when user undo removal
--this way when a dock or panel is scheduled for removal but the user undo that removal all events for main dock/panel window are forwarded correctly. As a side fix parabolic effect works just fine now is such scenario.
This commit is contained in:
parent
837f0a81e7
commit
c4afa37465
@ -190,6 +190,10 @@ View::View(Plasma::Corona *corona, QScreen *targetScreen, bool byPassX11WM)
|
||||
emit inEditModeChanged();
|
||||
});
|
||||
|
||||
connect(this->containment(), &Plasma::Containment::destroyedChanged, this, [&]() {
|
||||
m_inDelete = containment()->destroyed();
|
||||
});
|
||||
|
||||
if (m_corona->viewSettingsFactory()->hasOrphanSettings()
|
||||
&& m_corona->viewSettingsFactory()->hasVisibleSettings()
|
||||
&& m_corona->viewSettingsFactory()->lastContainment() == containment()) {
|
||||
@ -523,8 +527,6 @@ void View::newView(const QString &templateFile)
|
||||
void View::removeView()
|
||||
{
|
||||
if (m_layout) {
|
||||
m_inDelete = true;
|
||||
|
||||
QAction *removeAct = action("remove");
|
||||
|
||||
if (removeAct) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user