diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 6cfc3c3a7..4d989d29c 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -3906,7 +3906,5 @@ QString MainWindow::GetMeasurementFileName() //--------------------------------------------------------------------------------------------------------------------- void MainWindow::UpdateWindowTitle() { - QString shownName = GetPatternFileName(); - shownName += GetMeasurementFileName(); - setWindowTitle(shownName); + setWindowTitle(qvariant_cast(GetPatternFileName()+GetMeasurementFileName())); }