From 8c2a06e63fdb50a9cd0eb3e6b2e8258c7cd5bae1 Mon Sep 17 00:00:00 2001 From: dismine Date: Fri, 12 Dec 2014 12:30:02 +0200 Subject: [PATCH] If not get all list of details user will not show all details for creation a layout. For this change mode from Draw to Details and than prepare details. --HG-- branch : develop --- src/app/mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 1ee9b8f73..9404dec7e 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -1889,9 +1889,14 @@ void MainWindow::ActionHistory(bool checked) void MainWindow::ActionLayout(bool checked) { Q_UNUSED(checked); - hide(); + ActionDetails(true);//Get all list of details. QVector listDetails; const QHash *details = pattern->DataDetails(); + if (details->count() == 0) + { + return; + } + hide();//Now we can hide window QHashIterator idetail(*details); while (idetail.hasNext()) {