Very long WorkSpace title leads to error

• Oct 12, 2020 - 11:10
Reported version
3.5
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
PR created
Regression
No
Workaround
No
Project

Try to create new custom WorkSpace and give it a very long title
You will see an error message (like on attached screenshot)

Do we need to fix that or nobody face this issue?

Attachment Size
2020-10-12_12-37-45.jpg 179.33 KB

Comments

What do you want to fix there? If a filename is too long for a certain file system (here NTFS I guess) there's not much we can do about it but tell the user.

A better reason might be due though (actually any reason, as none is given apparently), but I think we're lost if we don't get one from the operating system.

Actually ther dialog bix isn't given any reason to display, that ": " seems just bogus:

static void writeFailed(const QString& _path)
      {
      QString s = qApp->translate("Workspace", "Writing Workspace File\n%1\nfailed: ");
      QMessageBox::critical(mscore, qApp->translate("Workspace", "Writing Workspace File"), s.arg(_path));
      }