From 9be80423dcc9e5fb4261fa0823d8399bc07a6071 Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Sun, 29 Jul 2018 23:37:34 +0200 Subject: [PATCH] Drop redundant setAttribute for WA_DeleteOnClose Every KMainWindow (which DolphinMainWindow inherits) already has this attribute set. --- src/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a46b5e2d8..3db63eab0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -144,7 +144,6 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) } DolphinMainWindow* mainWindow = new DolphinMainWindow(); - mainWindow->setAttribute(Qt::WA_DeleteOnClose); if (parser.isSet(QStringLiteral("select"))) { mainWindow->openFiles(urls, splitView);