QCAD Bugtracker

  • Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
  • Operating System All
  • Severity Very Low
  • Priority Very Low
  • Reported Version 3.26.1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by N. DeCicco - 10.04.2021
Last edited by Andrew - 10.04.2021

FS#2225 - Filenames containing an ampersand do not render correctly in the tab bar and Window menu

If a file is opened whose filename contains an ampersand, the filename will be rendered correctly in the application titlebar, but the tab bar and the Window menu will not display the ampersand.

If, however, the ‘alt’ key is pressed, the ampersand will result in an underscore appearing beneath the character immediately following it in the filename string. This applies both to the titlebar and the Window menu.

Interestingly, this can be “exploited” by a user to quickly switch between tabs by pressing ‘alt’ and the character which follows the ampersand simultaneously. Likewise, a user can swap between windows using the Window menu in a similar fashion, by first pressing Alt+W, then Alt and the same key as before.

The expected result is that the ampersand is rendered, the underscore is not rendered, and the ‘alt’ key shortcuts don’t work.

It would appear that this is a simple case of failing to properly escape the ampersand in filenames before passing the filename string to various Qt methods.

Closed by  Andrew
10.04.2021 09:01
Reason for closing:  Fixed
Additional comments about closing:  

https://github.com/qcad/qcad/commit /42b847283eb1629ee10e6544a2a29f95d67f238 4


Available keyboard shortcuts


Task Details

Task Editing