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()) {