diff --git a/src/qtgui/mainwindow.cpp b/src/qtgui/mainwindow.cpp index e53233b0..eaa28bf4 100644 --- a/src/qtgui/mainwindow.cpp +++ b/src/qtgui/mainwindow.cpp @@ -1398,8 +1398,12 @@ void MainWindow::onSaveAsDialogClose(int reason) { QString fileName = dialog->selectedFiles().value(0); settings.setValue("fileDialogState", dialog->saveState()); saveScene(this, context, fileName); + fs::path pathName = fileName.toStdString(), + baseName = fs::basename(pathName); context->fileName = fileName; context->shortName = QFileInfo(fileName).fileName(); + context->scene->setSourceFile(pathName); + context->scene->setDestinationFile(baseName.file_string()); ui->tabBar->setTabText(currentIndex, context->shortName); addRecentFile(fileName); }