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
This commit is contained in:
dismine 2014-12-12 12:30:02 +02:00
parent 3293916d50
commit 8c2a06e63f

View File

@ -1889,9 +1889,14 @@ void MainWindow::ActionHistory(bool checked)
void MainWindow::ActionLayout(bool checked) void MainWindow::ActionLayout(bool checked)
{ {
Q_UNUSED(checked); Q_UNUSED(checked);
hide(); ActionDetails(true);//Get all list of details.
QVector<VItem*> listDetails; QVector<VItem*> listDetails;
const QHash<quint32, VDetail> *details = pattern->DataDetails(); const QHash<quint32, VDetail> *details = pattern->DataDetails();
if (details->count() == 0)
{
return;
}
hide();//Now we can hide window
QHashIterator<quint32, VDetail> idetail(*details); QHashIterator<quint32, VDetail> idetail(*details);
while (idetail.hasNext()) while (idetail.hasNext())
{ {