From b99724c7b0142d6e547243af2579a1db77b75d2f Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sun, 7 Feb 2021 13:44:59 -0800 Subject: [PATCH] Don't try to change the file extension to mpd. Fixes #451. Fixes #616. Fixes #462. --- common/lc_mainwindow.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/common/lc_mainwindow.cpp b/common/lc_mainwindow.cpp index d3396663..de33ffcd 100644 --- a/common/lc_mainwindow.cpp +++ b/common/lc_mainwindow.cpp @@ -2495,20 +2495,10 @@ bool lcMainWindow::SaveProject(const QString& FileName) QString SaveFileName = FileName; Project* Project = lcGetActiveProject(); - if (!SaveFileName.isEmpty() && Project->GetModels().GetSize() > 1 && QFileInfo(SaveFileName).suffix().toLower() != QLatin1String("mpd")) - SaveFileName.clear(); - if (SaveFileName.isEmpty()) { SaveFileName = Project->GetFileName(); - if (Project->GetModels().GetSize() > 1 && QFileInfo(SaveFileName).suffix().toLower() != QLatin1String("mpd")) - { - int SuffixLength = QFileInfo(SaveFileName).suffix().length(); - if (SuffixLength) - SaveFileName = SaveFileName.left(SaveFileName.length() - SuffixLength - 1); - } - if (SaveFileName.isEmpty()) SaveFileName = QFileInfo(QDir(lcGetProfileString(LC_PROFILE_PROJECTS_PATH)), Project->GetTitle()).absoluteFilePath();