From e548f71715b63d7c98ff29226ff9e301cc059ff4 Mon Sep 17 00:00:00 2001 From: Ted Felix Date: Mon, 21 Oct 2024 21:29:08 -0400 Subject: [PATCH] Save As...: Cleanup --- src/gui/application/RosegardenMainWindow.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/gui/application/RosegardenMainWindow.cpp b/src/gui/application/RosegardenMainWindow.cpp index 19f6cef58..9c1ef0ecf 100644 --- a/src/gui/application/RosegardenMainWindow.cpp +++ b/src/gui/application/RosegardenMainWindow.cpp @@ -2216,27 +2216,8 @@ RosegardenMainWindow::launchSaveAsDialog(QString filter, name += filterExtension; } - // if we get a string like "/tmp/~/foo.rg" assume the last saved path was - // /tmp and the desired new path is ~ and try to doctor the string up, which - // may well fail, but it's better to try - // ??? Is this possible? - if (name.contains("~")) { - name = name.remove(0, name.indexOf("~") + 1); - name = name.prepend(QDir::homePath()); - - //RG_DEBUG << "doctored filename after '~' swap: " << name; - - } - const QFileInfo info(name); - // ??? Is this possible? - if (info.isDir()) { - QMessageBox::warning(this, tr("Rosegarden"), - tr("You have specified a folder/directory.")); - return ""; - } - // Confirm overwrite. if (info.exists()) { int overwrite = QMessageBox::question(