mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-07-01 00:28:12 +02:00
Set default name for file if empty.
--HG-- branch : develop
This commit is contained in:
parent
466bc98020
commit
1ab3b6c608
|
@ -122,7 +122,16 @@ void TableWindow::ModelChosen(QVector<VItem*> listDetails, const QString &fileNa
|
|||
{
|
||||
this->description = description;
|
||||
|
||||
QFileInfo fi( fileName );
|
||||
QString file;
|
||||
if (fileName.isEmpty())
|
||||
{
|
||||
file = tr("untitled");
|
||||
}
|
||||
else
|
||||
{
|
||||
file = fileName;
|
||||
}
|
||||
QFileInfo fi( file );
|
||||
this->fileName = fi.baseName();
|
||||
|
||||
this->listDetails = listDetails;
|
||||
|
|
Loading…
Reference in a new issue