Bug 477751 - Inline Text property not saved unless using the Properties pane
Summary: Inline Text property not saved unless using the Properties pane
Status: RESOLVED FIXED
Alias: None
Product: KEXI
Classification: Applications
Component: Forms (show other bugs)
Version: 3.2.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 3.2.1
Assignee: Kexi Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-30 05:57 UTC by Jon
Modified: 2023-12-01 00:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 3.2.1
Sentry Crash Report:


Attachments
video of me demonstrating the bug I am describing (1.37 MB, video/x-matroska)
2023-11-30 05:57 UTC, Jon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon 2023-11-30 05:57:53 UTC
Created attachment 163636 [details]
video of me demonstrating the bug I am describing

SUMMARY
When creating a label for a widget on a form in Kexi, text entered directly into the label doesn't seem to get retained when saved. It reverts back to its original, default Text property value (e.g., "Label", "Label 2", etc.).

STEPS TO REPRODUCE
1. Open Kexi.
2. Select "New...", "Blank Database"; "File" [storage method]; fill out name and destination directory.
3. Under Create tab, select Form.
4. In Form Design tab, select Label.
5. Click and drag to create a new label in the form design area.
6. Type in desired label text (program defaults to letting you type into the label itself, not the Properties pane).
7. Click somewhere outside of label to lock its contents into place.
8. Save the form.
9. Close form.
10. Reopen form.

OBSERVED RESULT
Desired label text that was typed in before saving form was not retained after saving, closing, and reopening form.

EXPECTED RESULT
When reopening saved form, text would be what had been originally typed directly into the label upon its creation.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
Operating System: Ubuntu Studio 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-89-lowlatency (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5 CPU M 540 @ 2.53GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics

ADDITIONAL INFORMATION
A workaround seems to be just typing the desired label text into the Text property in the Properties pane (see attached video). I am new to Kexi, but I looked through existing bug reports and did not see one related to this.

Thank you
Comment 1 Jarosław Staniek 2023-11-30 22:03:55 UTC
Thanks so much Jon for the great report!
Confirmed.
Comment 2 Jarosław Staniek 2023-11-30 22:55:51 UTC
Changes the bug's title since the issue also applies to check box, button, link button.
Comment 3 Jon 2023-11-30 23:43:01 UTC
I didn't catch those. Thanks!
Comment 4 Jarosław Staniek 2023-12-01 00:13:28 UTC
(and text box and editor)
Comment 5 Jarosław Staniek 2023-12-01 00:14:21 UTC
Git commit 0d58920bafff495a90a4fced62da7f962ee2d9c5 by Jaroslaw Staniek.
Committed on 01/12/2023 at 01:14.
Pushed by staniek into branch '3.2'.

Fix: Inline Text property not saved unless using the Properties pane

Affected form widgets were: label, text box, text editor, check box, button, link button.

(inline editing in the text editor is still not functional though)
FIXED-IN:3.2.1

M  +7    -0    src/plugins/forms/widgets/main/KexiMainFormWidgetsFactory.cpp

https://invent.kde.org/office/kexi/-/commit/0d58920bafff495a90a4fced62da7f962ee2d9c5
Comment 6 Jarosław Staniek 2023-12-01 00:14:52 UTC
Done :)