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