Fixed GetMeasurementFileName
--HG-- branch : feature
This commit is contained in:
parent
76f4753773
commit
fa032fced2
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user