<?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>241874</bug_id>
          
          <creation_ts>2010-06-16 03:04:07 +0000</creation_ts>
          <short_desc>Can&apos;t edit &amp; save an existing equalizer preset</short_desc>
          <delta_ts>2013-01-22 19:04:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>amarok</product>
          <component>Tools/Equalizer</component>
          <version>2.6-git</version>
          <rep_platform>Arch Linux</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="Harley Laue">losinggeneration</reporter>
          <assigned_to name="Amarok Bugs">amarok-bugs-null</assigned_to>
          <cc>illya.kovalevskyy</cc>
    
    <cc>kfunk</cc>
    
    <cc>ognyan_angelov</cc>
    
    <cc>ralf-engels</cc>
    
    <cc>zmogas</cc>
          
          <cf_commitlink>http://commits.kde.org/amarok/97c5144faf608b8fca0522cff4f9590fe09896bf</cf_commitlink>
          <cf_versionfixedin>2.8</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>979093</commentid>
    <comment_count>0</comment_count>
    <who name="Harley Laue">losinggeneration</who>
    <bug_when>2010-06-16 03:04:07 +0000</bug_when>
    <thetext>Version:           2.3.1 (using KDE 4.4.3) 
OS:                Linux

Presets can be created but they cannot be overwritten when edited.

Reproducible: Always

Steps to Reproduce:
1) Edit an existing preset
2) Upon any changes Amarok automatically renames the preset to &quot;Manual&quot;
3) Try to save the edited preset with a name of an existing preset 

Actual Results:  
Upon typing an existing preset&apos;s name and clicking save, the original preset&apos;s values are reloaded losing any changes that may have been made.

Expected Results:  
The preset of the same name is overwritten perhaps with a prompt &quot;You&apos;re about to overwrite an existing preset, are you sure you want to do this?&quot;

The current method to overwrite a preset is as follows:
1) Save preset to a temporary name
2) Delete the old preset
3) Save temporary preset to old preset&apos;s name
4) Remove temporary preset

It&apos;s not straight forward that this is the route that has to be taken in order to save the preset to an existing preset&apos;s name.

Other thoughts:
The actual implementation on overwriting the preset is up to your discretion. I was merely giving one possible solution in the &quot;expected results&quot; section. Another possibility would be like what bug 225406 said: Have a popup for a name (perhaps with type-ahead like the current drop-down has.) Another option might  be to not change the name of the preset to &quot;Manual&quot; after an edit and when the use clicks save prompt then, or if the user doesn&apos;t save, rename it upon clicking &quot;OK&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>979094</commentid>
    <comment_count>1</comment_count>
    <who name="Harley Laue">losinggeneration</who>
    <bug_when>2010-06-16 03:07:24 +0000</bug_when>
    <thetext>I should have added equalizer to the title so it&apos;s more likely to be found if others search for reports on equalizer presets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1052482</commentid>
    <comment_count>2</comment_count>
    <who name="Ognyan Angelov">ognyan_angelov</who>
    <bug_when>2010-12-02 18:36:00 +0000</bug_when>
    <thetext>Setup:
  Amarok 2.3.2
  KDE 4.4.5
Test Result:
  Same Bug occurs here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1052511</commentid>
    <comment_count>3</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2010-12-02 19:27:30 +0000</bug_when>
    <thetext>Setting to confirmed, updated version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1127044</commentid>
    <comment_count>4</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2011-06-04 12:10:24 +0000</bug_when>
    <thetext>This is an automated message from the triager:

Amarok 2.4.1 has been released on May 8 already. Could you please upgrade and test if you can still reproduce this bug?

Without feedback within a month we will close this bug as resolved.

Thank you for your understanding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128192</commentid>
    <comment_count>5</comment_count>
    <who name="Harley Laue">losinggeneration</who>
    <bug_when>2011-06-06 16:44:45 +0000</bug_when>
    <thetext>It is indeed reproducible with 2.4.1. I can&apos;t seem to update the version myself though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1128344</commentid>
    <comment_count>6</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2011-06-07 01:41:32 +0000</bug_when>
    <thetext>Thank you for the feedback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1131129</commentid>
    <comment_count>7</comment_count>
    <who name="Kevin Funk">kfunk</who>
    <bug_when>2011-06-14 15:05:35 +0000</bug_when>
    <thetext>Just investigated, not really fixable at the moment. As soon as the combo box is left, a indexChanged signal is emitted which causes a reload of the current item (intended, actually). 

The Equalizer would have to be redesigned, e.g. use a modal line edit for entering the to-be-saved preset name.

Just FYI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1256791</commentid>
    <comment_count>8</comment_count>
    <who name="Valdas">zmogas</who>
    <bug_when>2012-05-20 18:15:21 +0000</bug_when>
    <thetext>This Bug also exists in version 2.5.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1324516</commentid>
    <comment_count>9</comment_count>
    <who name="Illya Kovalevskyy">illya.kovalevskyy</who>
    <bug_when>2012-12-17 22:18:13 +0000</bug_when>
    <thetext>That error on:
======
Kubuntu 12.10
Qt 4.8.3
Amarok 4.7 (beta)
======

Cannot edit or save an existing equalizer preset.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1332855</commentid>
    <comment_count>10</comment_count>
    <who name="Ralf Engels">ralf-engels</who>
    <bug_when>2013-01-17 10:46:06 +0000</bug_when>
    <thetext>I agree that I don&apos;t understand this preset stuff.
Why does the preset always fall back to &quot;manual&quot;?

Will have a look at the code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1334402</commentid>
    <comment_count>11</comment_count>
    <who name="Ralf Engels">ralf-engels</who>
    <bug_when>2013-01-22 19:04:14 +0000</bug_when>
    <thetext>Git commit 97c5144faf608b8fca0522cff4f9590fe09896bf by Ralf Engels.
Committed on 22/01/2013 at 14:40.
Pushed by rengels into branch &apos;master&apos;.

Refactoring for Equalizer dialog

Add comments
Improve saving of pre-defined presets
Fix Can&apos;t edit &amp; save an existing equalizer preset
Cleanup of the Equalizer stuff a bit, expecially the Equalizer Dialog
Related: bug 274972
FIXED-IN: 2.8

M  +0    -1    src/App.cpp
M  +168  -181  src/dialogs/EqualizerDialog.cpp
M  +38   -19   src/dialogs/EqualizerDialog.h
M  +17   -47   src/dialogs/EqualizerDialog.ui
M  +32   -27   src/equalizer/EqualizerPresets.cpp
M  +29   -12   src/equalizer/EqualizerPresets.h

http://commits.kde.org/amarok/97c5144faf608b8fca0522cff4f9590fe09896bf</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>