支持文件名加入小数点

This commit is contained in:
yangjiaxuan 2022-08-11 10:45:46 +08:00
parent 38ea4c66ab
commit 9beebde6d7
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ void Dialog_SaveAs::on_dialog_accepted()
{ {
QString path = selectedFile.left(pos + 1); QString path = selectedFile.left(pos + 1);
QString name = selectedFile.right(selectedFile.count() - pos - 1); QString name = selectedFile.right(selectedFile.count() - pos - 1);
pos = name.lastIndexOf('.'); pos = name.lastIndexOf(extName);
if (-1 != pos) if (-1 != pos)
name = name.left(pos); name = name.left(pos);