支持文件名加入小数点
This commit is contained in:
parent
38ea4c66ab
commit
9beebde6d7
|
@ -183,7 +183,7 @@ void Dialog_SaveAs::on_dialog_accepted()
|
|||
{
|
||||
QString path = selectedFile.left(pos + 1);
|
||||
QString name = selectedFile.right(selectedFile.count() - pos - 1);
|
||||
pos = name.lastIndexOf('.');
|
||||
pos = name.lastIndexOf(extName);
|
||||
if (-1 != pos)
|
||||
name = name.left(pos);
|
||||
|
||||
|
|
Loading…
Reference in New Issue