This commit is contained in:
13038267101 2023-02-08 15:28:38 +08:00
commit 061b52a06a
3 changed files with 14 additions and 8 deletions

View File

@ -874,7 +874,7 @@
<location filename="form_maininterface.cpp" line="208"/> <location filename="form_maininterface.cpp" line="208"/>
<location filename="form_maininterface.cpp" line="490"/> <location filename="form_maininterface.cpp" line="490"/>
<source>image pixel: </source> <source>image pixel: </source>
<translation> </translation> <translation>标准圆: * : </translation>
</message> </message>
<message> <message>
<location filename="form_maininterface.cpp" line="519"/> <location filename="form_maininterface.cpp" line="519"/>

View File

@ -576,12 +576,12 @@ void Form_mainInterface::on_tableWidget_currentItemChanged(QTableWidgetItem *cur
// ui->pbtn_showImg->setVisible(true); // ui->pbtn_showImg->setVisible(true);
} }
m_multiIndex = -1; // m_multiIndex = -1;
m_curNameIndex = 1; // m_curNameIndex = 1;
m_list_images.clear(); // m_list_images.clear();
QDir dir(getCachePath()); // QDir dir(getCachePath());
if (dir.exists()) // if (dir.exists())
dir.removeRecursively(); // dir.removeRecursively();
} }
} }
@ -590,7 +590,13 @@ void Form_mainInterface::on_pbtn_start_clicked()
m_multiIndex = -1; m_multiIndex = -1;
m_curNameIndex = 1; m_curNameIndex = 1;
m_list_images.clear(); m_list_images.clear();
QDir dir(getCachePath());
QString cachePath = getCachePath();
cachePath.append(m_serialNum);
cachePath.append("/");
cachePath.append(m_curItemName);
cachePath.append("/");
QDir dir(getStdString(getStdFileName(cachePath)).c_str());
if (dir.exists()) if (dir.exists())
dir.removeRecursively(); dir.removeRecursively();