mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Write backup improvement.
Remove the waitForFinished function to truly use the multi-threading.
This commit is contained in:
@@ -1640,12 +1640,10 @@ NamesList QETProject::namesListForIntegrationCategory() {
|
|||||||
void QETProject::writeBackup()
|
void QETProject::writeBackup()
|
||||||
{
|
{
|
||||||
QDomDocument xml_project(toXml());
|
QDomDocument xml_project(toXml());
|
||||||
QString temp;
|
QtConcurrent::run(QET::writeToFile,
|
||||||
QFuture<void> bac = QtConcurrent::run(QET::writeToFile,
|
|
||||||
xml_project,
|
xml_project,
|
||||||
&m_backup_file,
|
&m_backup_file,
|
||||||
&temp);
|
nullptr);
|
||||||
bac.waitForFinished();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user