<?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>403854</bug_id>
          
          <creation_ts>2019-02-02 11:28:20 +0000</creation_ts>
          <short_desc>Timeline doesn&apos;t highlight current frame when loading document</short_desc>
          <delta_ts>2020-05-08 18:48:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Animation</component>
          <version>4.1.7</version>
          <rep_platform>Manjaro</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>1</everconfirmed>
          <reporter name="Jasper">hartog.jas</reporter>
          <assigned_to name="Tiar">tamtamy.tymona</assigned_to>
          <cc>freebox64</cc>
    
    <cc>tamtamy.tymona</cc>
          
          <cf_commitlink>https://invent.kde.org/kde/krita/commit/a0404a1906c87c02f4b7f78cf4e4e5907dad18fa</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1835356</commentid>
    <comment_count>0</comment_count>
    <who name="Jasper">hartog.jas</who>
    <bug_when>2019-02-02 11:28:20 +0000</bug_when>
    <thetext>SUMMARY
When a animation is loaded the last active frame is selected but not highlighted in the timeline.

STEPS TO REPRODUCE
1. Set Krita&apos;s workspace to Animation.
2. Create a new document.
3. Create a animation with 5 frames.
4. Select the 3th frame.
5. Draw something on the 3th frame.
6. Save your animation.
7. Close Krita, not only your document.
8. Open Krita.
9. Open your animation. 

OBSERVED RESULT
When you open your animation the first frame in the timeline is highlighted but the 3th frame is active. 

EXPECTED RESULT
The 3th frame in the timeline is highlighted and active.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Tested on 4.1.7 and from source (#2400a82)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1836109</commentid>
    <comment_count>1</comment_count>
    <who name="mvowada">freebox64</who>
    <bug_when>2019-02-06 08:29:23 +0000</bug_when>
    <thetext>Thanks.
Yes, easily reproducible here (tested with krita 4.2.0-pre-alpha (git 86c58a3 appimage on Ubuntu 14.04).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928146</commentid>
    <comment_count>2</comment_count>
    <who name="Eoin O&apos;Neill">eoinoneill1991</who>
    <bug_when>2020-05-07 21:38:15 +0000</bug_when>
    <thetext>Git commit 9d6a9446f6cef4ace8628d113c4b4db3393000fc by Eoin O&apos;Neill.
Committed on 07/05/2020 at 21:02.
Pushed by eoinoneill into branch &apos;master&apos;.

Timeline now correctly  highlights current frame after loading document.

M  +5    -7    plugins/dockers/animation/kis_time_based_item_model.cpp
M  +3    -1    plugins/dockers/animation/kis_time_based_item_model.h
M  +1    -0    plugins/dockers/animation/timeline_frames_model.cpp

https://invent.kde.org/kde/krita/commit/9d6a9446f6cef4ace8628d113c4b4db3393000fc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928293</commentid>
    <comment_count>3</comment_count>
    <who name="Eoin O&apos;Neill">eoinoneill1991</who>
    <bug_when>2020-05-08 18:48:55 +0000</bug_when>
    <thetext>Git commit a0404a1906c87c02f4b7f78cf4e4e5907dad18fa by Eoin O&apos;Neill.
Committed on 08/05/2020 at 18:48.
Pushed by eoinoneill into branch &apos;krita/4.3&apos;.

Timeline now correctly  highlights current frame after loading document.
(cherry-picked from commit 9d6a9446f6cef4ace8628d113c4b4db3393000fc)

M  +5    -7    plugins/dockers/animation/kis_time_based_item_model.cpp
M  +3    -1    plugins/dockers/animation/kis_time_based_item_model.h
M  +1    -0    plugins/dockers/animation/timeline_frames_model.cpp

https://invent.kde.org/kde/krita/commit/a0404a1906c87c02f4b7f78cf4e4e5907dad18fa</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>