]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Fix crash on Wayland when closing the mainwindow while another dialog is open
[dolphin.git] / src / dolphinmainwindow.cpp
index e7c402b885cbbbdc9fb170fe916a28c91f2f5a2e..4297321fc1e70b6236bd3a5c8f873cd05d5f4b8a 100644 (file)
@@ -204,6 +204,8 @@ DolphinMainWindow::DolphinMainWindow() :
 
 DolphinMainWindow::~DolphinMainWindow()
 {
+    // This fixes a crash on Wayland when closing the mainwindow while another dialog is open.
+    disconnect(QGuiApplication::clipboard(), &QClipboard::dataChanged, this, &DolphinMainWindow::updatePasteAction);
 }
 
 QVector<DolphinViewContainer*> DolphinMainWindow::viewContainers() const