diff --git a/src/tablewindow.cpp b/src/tablewindow.cpp index 7215028ab..c59521075 100644 --- a/src/tablewindow.cpp +++ b/src/tablewindow.cpp @@ -122,7 +122,16 @@ void TableWindow::ModelChosen(QVector 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;