summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-06 22:49:47 +0200
committerMontel Laurent <[email protected]>2017-09-06 22:49:47 +0200
commit5e08d290deacce8672d7ae0e6956865789c8b87f (patch)
treee7f587fdc3f10658e1717bf5709f8c74fb05378b
parentd7000e83bd3b30f803f77176e7f507e893fff015 (diff)
Assign parent directly. Remove setLayout(...) when not necessary
-rw-r--r--CMakeLists.txt3
-rw-r--r--src/individualmaildialog.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8c85606..5ed428a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,9 @@ endif()
find_package(ECM ${ECM_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
set(LIBRARY_NAMELINK)
+if (POLICY CMP0053)
+ cmake_policy(SET CMP0053 NEW)
+endif()
include(GenerateExportHeader)
include(ECMSetupVersion)
include(ECMGenerateHeaders)
diff --git a/src/individualmaildialog.cpp b/src/individualmaildialog.cpp
index cb58db9..6831365 100644
--- a/src/individualmaildialog.cpp
+++ b/src/individualmaildialog.cpp
@@ -92,7 +92,6 @@ IndividualMailDialog::IndividualMailDialog(const QString &question,
updateButtonState();
topLayout->addWidget(m_buttons);
- setLayout(topLayout);
}
IndividualMailDialog::~IndividualMailDialog()