Fix bug with watcher. It watches wrong path.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2018-08-31 15:22:59 +03:00
parent 4f18aea56f
commit eabfd48b50

View File

@ -4507,7 +4507,7 @@ bool MainWindow::LoadPattern(QString fileName, const QString& customMeasureFile)
else
{
ui->actionUnloadMeasurements->setEnabled(true);
watcher->addPath(path);
watcher->addPath(newPath);
ui->actionEditCurrent->setEnabled(true);
}
}