<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>463398</bug_id>
          
          <creation_ts>2022-12-23 15:31:48 +0000</creation_ts>
          <short_desc>Predefined keywords are not remembered</short_desc>
          <delta_ts>2023-01-04 22:02:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>KBibTeX</product>
          <component>General</component>
          <version>0.9.2</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Axel Schwank">axel</reporter>
          <assigned_to name="Thomas Fischer">fischer</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/kbibtex/commit/3d32f7724f1471a355a2aad7487a82e6dd1a067d</cf_commitlink>
          <cf_versionfixedin>0.9.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2188643</commentid>
    <comment_count>0</comment_count>
    <who name="Axel Schwank">axel</who>
    <bug_when>2022-12-23 15:31:48 +0000</bug_when>
    <thetext>SUMMARY
***
KBibTeX does not remember keywords from preferences
***


STEPS TO REPRODUCE
1. Open KBibTeX settings (Settings -&gt; Configure KBibTex...)
2. Go to General -&gt; Keywords
3. Add some keywords
4. Press OK Button

OBSERVED RESULT
Go to settings again. All keywords are lost.

EXPECTED RESULT
Keywords are rememberes.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSuSE Tumbleweed
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191385</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Fischer">fischer</who>
    <bug_when>2023-01-01 22:33:34 +0000</bug_when>
    <thetext>I can confirm this bug. Can you please check the latest commit in the &apos;kbibtex/0.9&apos; in my personal Git repository (not KBibTeX&apos;s official one)?
https://invent.kde.org/thomasfischer/kbibtex/commit/3d32f7724f1471a355a2aad7487a82e6dd1a067d

You should be able to test this code with a small helper script I have published in a separate repository. Please perform the following steps:
0. Uninstall the distribution-provided KBibTeX installation (not sure if actually necessary; try if problems in following steps arise)
1. Get this script:  https://invent.kde.org/thomasfischer/kbibtex-related/-/raw/master/run/run-kbibtex.sh?inline=false
2. Run as normal user:   bash run-kbibtex.sh https://invent.kde.org/thomasfischer/kbibtex.git kbibtex/0.9

None of the steps above requires root/sudo/su as everything happens in /tmp. If cmake complains about missing development libraries, simply install those via your Linux distribution&apos;s package manager and restart the script. Later, you can remove those packages if you see no further need.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191927</commentid>
    <comment_count>2</comment_count>
    <who name="Axel Schwank">axel</who>
    <bug_when>2023-01-02 16:47:09 +0000</bug_when>
    <thetext>Hi Thomas,
that looks good. I can confirm the bug is fixed. Thank you.

Best regards
Axel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2192018</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Fischer">fischer</who>
    <bug_when>2023-01-02 22:14:32 +0000</bug_when>
    <thetext>Git commit 3d32f7724f1471a355a2aad7487a82e6dd1a067d by Thomas Fischer.
Committed on 01/01/2023 at 21:29.
Pushed by thomasfischer into branch &apos;kbibtex/0.9&apos;.

Predefined keywords are not remembered

When the list of predefined keywords in the settings dialog is changed
(keyword added, removed, or modified), those changes should trigger a
status changed that this dialog&apos;s settings got changed and therefore
should get applied when the user clicks &quot;Ok&quot; or &quot;Apply&quot;.

M  +3    -1    src/gui/preferences/settingsglobalkeywordswidget.cpp

https://invent.kde.org/office/kbibtex/commit/3d32f7724f1471a355a2aad7487a82e6dd1a067d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2192382</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Fischer">fischer</who>
    <bug_when>2023-01-03 22:07:12 +0000</bug_when>
    <thetext>Git commit a71b5d77862a696f0b4da432607b35c04eafe989 by Thomas Fischer.
Committed on 02/01/2023 at 23:09.
Pushed by thomasfischer into branch &apos;kbibtex/0.10&apos;.

Predefined keywords are not remembered

When the list of predefined keywords in the settings dialog is changed
(keyword added, removed, or modified), those changes should trigger a
status changed that this dialog&apos;s settings got changed and therefore
should get applied when the user clicks &quot;Ok&quot; or &quot;Apply&quot;.

This commit is a forward port of commit 3d32f7724f1471a355a2aad7487 from
branch &apos;kbibtex/0.9&apos;, but test &apos;settingsGlobalKeywordsWidgetAddRemove&apos;
in &apos;KBibTeXGUITest&apos; was added only in this commit here.

M  +1    -0    CMakeLists.txt
M  +3    -1    src/gui/preferences/settingsglobalkeywordswidget.cpp
M  +4    -0    src/gui/preferences/settingsglobalkeywordswidget.h
M  +19   -0    src/test/kbibtexguitest.cpp

https://invent.kde.org/office/kbibtex/commit/a71b5d77862a696f0b4da432607b35c04eafe989</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193056</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Fischer">fischer</who>
    <bug_when>2023-01-04 22:02:03 +0000</bug_when>
    <thetext>Git commit cad23e2ada3515cc78a88ece1647eec3fb77708a by Thomas Fischer.
Committed on 04/01/2023 at 22:00.
Pushed by thomasfischer into branch &apos;master&apos;.

Predefined keywords are not remembered

When the list of predefined keywords in the settings dialog is changed
(keyword added, removed, or modified), those changes should trigger a
status changed that this dialog&apos;s settings got changed and therefore
should get applied when the user clicks &quot;Ok&quot; or &quot;Apply&quot;.

This commit is a forward port of commit a71b5d77862a696f0b4da4326 from
branch &apos;kbibtex/0.10&apos;.

M  +1    -0    CMakeLists.txt
M  +3    -1    src/gui/preferences/settingsglobalkeywordswidget.cpp
M  +4    -0    src/gui/preferences/settingsglobalkeywordswidget.h
M  +19   -0    src/test/kbibtexguitest.cpp

https://invent.kde.org/office/kbibtex/commit/cad23e2ada3515cc78a88ece1647eec3fb77708a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>