diff --git a/src/ipc/ipc.cpp b/src/ipc/ipc.cpp index 40e8f0c..32d8482 100644 --- a/src/ipc/ipc.cpp +++ b/src/ipc/ipc.cpp @@ -61,7 +61,7 @@ IpcServerConnection::IpcServerConnection(QLocalSocket* socket, IpcServer* server void IpcServerConnection::onDisconnected() { qCInfo(logIpc) << "IPC connection disconnected" << this; - this->deleteLater(); + delete this; } void IpcServerConnection::onReadyRead() { @@ -88,7 +88,7 @@ void IpcServerConnection::onReadyRead() { // async connections reparent if (dynamic_cast(this->parent()) != nullptr) { - this->deleteLater(); + delete this; } } diff --git a/src/window/proxywindow.cpp b/src/window/proxywindow.cpp index 4423547..3cc4378 100644 --- a/src/window/proxywindow.cpp +++ b/src/window/proxywindow.cpp @@ -288,16 +288,10 @@ void ProxyWindowBase::setVisibleDirect(bool visible) { this->bBackerVisibility = false; this->deleteWindow(); } - } else { - if (visible && this->window == nullptr) { - this->createWindow(); - } - - if (this->window != nullptr) { - if (visible) this->polishItems(); - this->window->setVisible(visible); - this->bBackerVisibility = visible; - } + } else if (this->window != nullptr) { + if (visible) this->polishItems(); + this->window->setVisible(visible); + this->bBackerVisibility = visible; } }