if (!ProjStat)
aPanel->addWarning(tr("STREAM_PROJECTION_FAILED"));
+ QVector<QString> warningsStr;
+
for (NCollection_DataMap<Handle(HYDROData_Profile), QSet<QString>>::Iterator it(warnings); it.More(); it.Next())
{
- const QSet<QString>& V = it.Value();
+ QSet<QString> V = it.Value();
if (V.empty())
- continue;
+ continue;
const Handle(HYDROData_Profile)& K = it.Key();
QString ProfName = K->GetName();
foreach (QString str, V)
{
- aPanel->addWarning("Profile: " + ProfName + ": " + str);
+ warningsStr.append(ProfName + ": " + str);
+ //aPanel->addWarning(ProfName + ": " + str);
}
aPanel->setBackgroundColorForProfileList(ProfName, QColor(Qt::yellow));
}
+ std::sort(warningsStr.begin(), warningsStr.end());
+ for (int k=0;k<warningsStr.size();k++)
+ aPanel->addWarning(warningsStr[k]);
+
myPreviewPrs->setShape( aPrsDef.myPrs2D );
}
else //mode == 1