Fixed GetMeasurementFileName

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2015-11-06 15:52:58 +02:00
parent 76f4753773
commit fa032fced2

View File

@ -1226,6 +1226,7 @@ void MainWindow::MeasurementsChanged(const QString &path)
if (checkFile.exists())
{
mChanges = true;
UpdateWindowTitle();
}
else
{
@ -1264,6 +1265,7 @@ void MainWindow::SyncMeasurements()
VWidgetPopup::PopupMessage(this, msg);
doc->LiteParseTree(Document::LiteParse);
mChanges = false;
UpdateWindowTitle();
}
else
{
@ -3895,7 +3897,7 @@ QString MainWindow::GetMeasurementFileName()
if(mChanges)
{
shownName += "[*]";
shownName += "*";
}
shownName += "]";
@ -3906,5 +3908,5 @@ QString MainWindow::GetMeasurementFileName()
//---------------------------------------------------------------------------------------------------------------------
void MainWindow::UpdateWindowTitle()
{
setWindowTitle(qvariant_cast<QString>(GetPatternFileName()+GetMeasurementFileName()));
setWindowTitle(GetPatternFileName()+GetMeasurementFileName());
}