fix: 修复bug84953
Description: 这里多加了一个.txt的后缀,去掉即可 Log: 与保存有关 Bug: https://pms.uniontech.com/zentao/bug-view-84953.html Change-Id: I14fa686075e55dfd08621d3d3a705b3be1f33a41
This commit is contained in:
parent
00be899bd0
commit
d02ef1d18a
|
@ -413,7 +413,8 @@ void MainWidget::slotExport()
|
||||||
QString file_path = QFileDialog::getSaveFileName(this, "save as", download + "/" + fileName, "*.txt");
|
QString file_path = QFileDialog::getSaveFileName(this, "save as", download + "/" + fileName, "*.txt");
|
||||||
qDebug() << file_path;
|
qDebug() << file_path;
|
||||||
|
|
||||||
QString path = file_path + ".txt";
|
//这里不应该增加一个.txt,会导致有两个后缀
|
||||||
|
QString path = file_path;
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
if (file.open(QFile::WriteOnly | QFile::Text)) {
|
if (file.open(QFile::WriteOnly | QFile::Text)) {
|
||||||
QTextStream out(&file);
|
QTextStream out(&file);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user