From 76f4753773127beee2a2bf2743f1adcca6f841a7 Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Fri, 6 Nov 2015 05:31:37 +0200 Subject: [PATCH] UpdateWindowTitle in one string --HG-- branch : feature --- src/app/valentina/mainwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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())); }