Bug report #18485

Recent Projects startup screen truncates filenames containing periods

Added by Patrick Dunford almost 7 years ago. Updated over 6 years ago.

Status:Reopened
Priority:Normal
Assignee:-
Category:Project Loading/Saving
Affected QGIS version:3.3(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26373

Description

If a project filename contains periods, the filename is truncated at the first period when displayed in the Recent Projects startup screen.

The code should truncate the filename at the last period, not the first one.

Screenshot_2018-03-20_16-24-17.png (198 KB) Patrick Dunford, 2018-03-20 04:25 AM

Screenshot_2018-07-12_05-35-53.png (99.2 KB) Patrick Dunford, 2018-07-11 07:38 PM

config.tar.gz (106 KB) Patrick Dunford, 2018-07-11 07:42 PM

Associated revisions

Revision 7ece90cb
Added by Salvatore Larosa over 6 years ago

Fixes #18485 - do not truncate project title if filename contains period
also add a small test

Revision d064086f
Added by Salvatore Larosa over 6 years ago

Fixes #18485 - do not truncate project title if filename contains period
also add a small test

Revision c4b91068
Added by Matthias Kuhn over 6 years ago

Merge pull request #7380 from slarosa/fix_18485

Fixes #18485 - do not truncate project title if filename contains period

Revision 9e63678b
Added by Salvatore Larosa over 6 years ago

Merge pull request #7381 from slarosa/backport_fix_18485

[BACKPORT] Fixes #18485 - do not truncate project title if filename contains period

History

#1 Updated by Nyall Dawson almost 7 years ago

Seems already fixed in 3.0

#2 Updated by Patrick Dunford over 6 years ago

I just noticed this happening again in the latest development master 05368e4
Project filename is os3.0.3.f.qgs and is displayed as os3

#3 Updated by Salvatore Larosa over 6 years ago

  • Affected QGIS version changed from 2.18.17 to 3.3(master)

#4 Updated by Salvatore Larosa over 6 years ago

  • Operating System deleted (Debian 9.3)

#5 Updated by Salvatore Larosa over 6 years ago

  • Pull Request or Patch supplied changed from No to Yes

#6 Updated by Patrick Dunford over 6 years ago

The issue also affects the title bar caption in Qgis 3.3

#7 Updated by Salvatore Larosa over 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

#8 Updated by Patrick Dunford over 6 years ago

Still see the issue, somehow only partly addressed?

#9 Updated by Patrick Dunford over 6 years ago

attached config for testing

Also available in: Atom PDF