diff --git a/plugins/virtualmonitor/virtualmonitorplugin.cpp b/plugins/virtualmonitor/virtualmonitorplugin.cpp index 8a7c1cf40..8fffe495b 100644 --- a/plugins/virtualmonitor/virtualmonitorplugin.cpp +++ b/plugins/virtualmonitor/virtualmonitorplugin.cpp @@ -111,6 +111,7 @@ bool VirtualMonitorPlugin::requestVirtualMonitor() requestVirtualMonitor(); } else { m_process->deleteLater(); + m_process = nullptr; } qCWarning(KDECONNECT_PLUGIN_VIRTUALMONITOR) << "virtual display finished with" << device()->name() << m_process->readAllStandardError(); });