Bug 479224

Summary: [CodeImportingWizard] Impossible to select first file in file selection dialog
Product: [Applications] umbrello Reporter: Oliver Kellogg <okellogg>
Component: importerAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 2.38.90 (KDE releases 24.01.90)
Sentry Crash Report:
Attachments: The file "Conf.h" appears selected but Number of files is 0

Description Oliver Kellogg 2023-12-31 13:13:46 UTC
Created attachment 164576 [details]
The file "Conf.h" appears selected but Number of files is 0

SUMMARY
***
In the CodeImportingWizard it is impossible to select the first file in the file selection dialog.
***

STEPS TO REPRODUCE
1. Start Umbrello and in main menubar select Code -> Code Importing Wizard...
2. In the dialog that pops up, navigate to a directory with multiple source files to import.
3. Try to select only the first of the multiple source files.

OBSERVED RESULT

The file may appear highlighted but the "Number of files" indication in the dialog remains at 0.
In fact, on pressing "Next >", in the CodeImportStatus dialog the Import Status display is empty.

EXPECTED RESULT

1. Selection of the first file shall change the "Number of files" indication to 1.
2. On pressing "Next", the selected file shall appear in the Import Status display.

SOFTWARE/OS VERSIONS
Linux: openSuSE Tumbleweed 20231226 x86_64
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Comment 1 Oliver Kellogg 2023-12-31 13:32:52 UTC
Git commit b48d9d0bbb1b39cfb147272693305fc3b03d8496 by Oliver Kellogg.
Committed on 31/12/2023 at 14:32.
Pushed by okellogg into branch 'master'.

Fix "[CodeImportingWizard] Impossible to select first file in file selection dialog"

umbrello/codeimpwizard/codeimportingwizard.{h,cpp}
- Move setPage() calls from constructor to new function setupPages.

umbrello/uml.cpp
- In function slotImportingWizard call wizard->setupPages().
FIXED-IN: 2.38.90 (KDE releases 24.01.90)

M  +14   -4    umbrello/codeimpwizard/codeimportingwizard.cpp
M  +2    -1    umbrello/codeimpwizard/codeimportingwizard.h
M  +2    -1    umbrello/uml.cpp

https://invent.kde.org/sdk/umbrello/-/commit/b48d9d0bbb1b39cfb147272693305fc3b03d8496