<?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>226230</bug_id>
          
          <creation_ts>2010-02-11 01:06:17 +0000</creation_ts>
          <short_desc>Picture of the day does not work</short_desc>
          <delta_ts>2010-05-07 15:55:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>plasma4</product>
          <component>widget-frame</component>
          <version>unspecified</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Unspecified</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="Médéric Boquien">mboquien</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>alex_monika</cc>
    
    <cc>annma</cc>
    
    <cc>etienne.rebetez</cc>
    
    <cc>magnus.bergmark</cc>
    
    <cc>mirza.dervisevic</cc>
          
          <cf_commitlink></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>914567</commentid>
    <comment_count>0</comment_count>
    <who name="Médéric Boquien">mboquien</who>
    <bug_when>2010-02-11 01:06:17 +0000</bug_when>
    <thetext>Version:            (using KDE 4.4.0)
Installed from:    Archlinux Packages

Hello,

The &quot;picture of the day&quot; in the Frame widget does not work.

Steps to reproduce:
* add Frame widget
* configure to &quot;picture of the day&quot; and set any source

The result is that the picture of the day is not displayed. When trying to configure again, the setting is back to &quot;Image&quot;, as if the configuration had not been recorded.

I have this problem in 4.3 and 4.4. I think it worked in 4.2.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929198</commentid>
    <comment_count>1</comment_count>
    <who name="Etienne">etienne.rebetez</who>
    <bug_when>2010-03-05 23:32:23 +0000</bug_when>
    <thetext>I can confim this. I found the source oft the setting bug. The Frame::stopPotd() is caled befor the setting is saved. In that function the &quot;picture of the day&quot; setting is removed.

But the image will still not load...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>929541</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander">alex_monika</who>
    <bug_when>2010-03-06 17:46:29 +0000</bug_when>
    <thetext>not working too</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>931871</commentid>
    <comment_count>3</comment_count>
    <who name="Mirza">mirza.dervisevic</who>
    <bug_when>2010-03-11 12:46:52 +0000</bug_when>
    <thetext>Not working for me too :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>945522</commentid>
    <comment_count>4</comment_count>
      <attachid>42517</attachid>
    <who name="Etienne">etienne.rebetez</who>
    <bug_when>2010-04-06 00:14:12 +0000</bug_when>
    <thetext>Created attachment 42517
Patch that makes potd work again.

Two little things where wrong. 
- The potd Setting was not handlet correctly. (See Comment 1)
- The datahash from the dataengine was always taken form the first position, where it obviusly not was. When it is adressed with the name, it works.

Some data engine sources dont&apos;t seem to work anymore, but that&apos;s an other story.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>946025</commentid>
    <comment_count>5</comment_count>
      <attachid>42548</attachid>
    <who name="Etienne">etienne.rebetez</who>
    <bug_when>2010-04-06 19:49:46 +0000</bug_when>
    <thetext>Created attachment 42548
Picture of the Day Patch

Didn&apos;t test it with a fresh picture frame...
The default text is now removed when a potd is loaded. I had to add a setMessage function in the picture class. 
Sorry for my spam :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>946223</commentid>
    <comment_count>6</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-04-07 10:57:30 +0000</bug_when>
    <thetext>SVN commit 1112069 by annma:

Patch from Etienne, thanks a lot! :-)
CCBUG=226230


 M  +1 -1      frame.cpp  
 M  +5 -0      picture.cpp  
 M  +1 -0      picture.h  
 M  +4 -3      slideshow.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1112069</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>946287</commentid>
    <comment_count>7</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-04-07 13:45:31 +0000</bug_when>
    <thetext>SVN commit 1112110 by annma:

fix Picture of the Day display, thanks to Etienne!
BUG=226230



 M  +1 -1      frame.cpp  
 M  +5 -0      picture.cpp  
 M  +1 -0      picture.h  
 M  +3 -2      slideshow.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1112110</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957848</commentid>
    <comment_count>8</comment_count>
    <who name="Magnus Bergmark">magnus.bergmark</who>
    <bug_when>2010-05-06 19:20:20 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; SVN commit 1112069 by annma:
&gt; [...]
&gt; WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1112069

Sorry to nitpick, but there&apos;s a spelling error in the diff for slideshow.cpp:
&quot;No Picture fot this Provider.&quot;

Note &quot;fot&quot; instead of &quot;for&quot;.

It&apos;s still present in trunk as of this posting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>957974</commentid>
    <comment_count>9</comment_count>
    <who name="Etienne">etienne.rebetez</who>
    <bug_when>2010-05-07 01:38:31 +0000</bug_when>
    <thetext>Thanks. Yes, i never see typos.
But, it was alredy corrected by annma.
It says &quot;No Picture from this Provider&quot; which sounds good to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>958039</commentid>
    <comment_count>10</comment_count>
    <who name="Magnus Bergmark">magnus.bergmark</who>
    <bug_when>2010-05-07 08:28:38 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Thanks. Yes, i never see typos.
&gt; But, it was alredy corrected by annma.
&gt; It says &quot;No Picture from this Provider&quot; which sounds good to me.

Maybe I misread it, but to me it looked like the correct spelling was in the 4.4 branch only, while the improperly spelt one was in trunk. Maybe I&apos;m not understanding the repo structure here, but wouldn&apos;t that mean that the spelling error will be reintroduced in 4.5 and above?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>958070</commentid>
    <comment_count>11</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-05-07 10:09:21 +0000</bug_when>
    <thetext>Magnus, what is your revision number for trunk?
For me rev 1123638 I have
        m_picture-&gt;setMessage(i18n(&quot;No Picture from this Provider.&quot;));
line 203 slideshow.cpp in trunk

Find out with &apos;svn info&apos; in your kdeplasma-addons trunk source please.

Also in the same dir please do:
grep -ri &apos;fot this &apos; ./</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>958118</commentid>
    <comment_count>12</comment_count>
    <who name="Magnus Bergmark">magnus.bergmark</who>
    <bug_when>2010-05-07 12:56:26 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; Magnus, what is your revision number for trunk?

Oh, I don&apos;t have it checked out or anything. I just looked at the above websvn link. One of them were for trunk and the other for branch 4.4, and the spelling error were only present in the trunk one.

&gt; For me rev 1123638 I have
&gt;         m_picture-&gt;setMessage(i18n(&quot;No Picture from this Provider.&quot;));
&gt; line 203 slideshow.cpp in trunk

Then I trust that is correct. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>958120</commentid>
    <comment_count>13</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-05-07 13:20:11 +0000</bug_when>
    <thetext>Actually looking at websvn would have told you
http://websvn.kde.org/trunk/KDE/kdeplasma-addons/applets/frame/slideshow.cpp?r1=1112069&amp;r2=1112105</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>958227</commentid>
    <comment_count>14</comment_count>
    <who name="Magnus Bergmark">magnus.bergmark</who>
    <bug_when>2010-05-07 15:55:18 +0000</bug_when>
    <thetext>(In reply to comment #13)
&gt; Actually looking at websvn would have told you
&gt; http://websvn.kde.org/trunk/KDE/kdeplasma-addons/applets/frame/slideshow.cpp?r1=1112069&amp;r2=1112105

I guess so. That diff was not linked to from here, and I&apos;m just a user trying to help.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>42517</attachid>
            <date>2010-04-06 00:14:12 +0000</date>
            <delta_ts>2010-04-06 19:49:46 +0000</delta_ts>
            <desc>Patch that makes potd work again.</desc>
            <filename>potd.patch</filename>
            <type>text/plain</type>
            <size>1275</size>
            <attacher name="Etienne">etienne.rebetez</attacher>
            
              <data encoding="base64">SW5kZXg6IHNsaWRlc2hvdy5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc2xpZGVzaG93LmNwcAkoUmV2aXNp
b24gMTExMTUyMCkKKysrIHNsaWRlc2hvdy5jcHAJKEFyYmVpdHNrb3BpZSkKQEAgLTE5NiwxNiAr
MTk2LDE1IEBACiAKIHZvaWQgU2xpZGVTaG93OjpkYXRhVXBkYXRlZChjb25zdCBRU3RyaW5nICZu
YW1lLCBjb25zdCBQbGFzbWE6OkRhdGFFbmdpbmU6OkRhdGEgJmRhdGEpCiB7Ci0gICAgUV9VTlVT
RUQobmFtZSkKICAgICBpZiAoZGF0YS5pc0VtcHR5KCkpIHsKICAgICAgICAgbV9pbWFnZSA9IFFJ
bWFnZSgpOwogICAgICAgICByZXR1cm47CiAgICAgfQogCi0gICAgbV9pbWFnZSA9IGRhdGFbMF0u
dmFsdWU8UUltYWdlPigpOworICAgIG1faW1hZ2UgPSBkYXRhW25hbWVdLnZhbHVlPFFJbWFnZT4o
KTsKICAgICAvL0NvbXBhdGliaWxpdHkgd2l0aCBvbGQgZGF0YWVuZ2luZXMKICAgICBpZiAobV9p
bWFnZS5pc051bGwoKSl7Ci0gICAgICAgIFFQaXhtYXAgdG1wUGl4bWFwID0gZGF0YVswXS52YWx1
ZTxRUGl4bWFwPigpOworICAgICAgICBRUGl4bWFwIHRtcFBpeG1hcCA9IGRhdGFbbmFtZV0udmFs
dWU8UVBpeG1hcD4oKTsKICAgICAgICAgaWYgKCF0bXBQaXhtYXAuaXNOdWxsKCkpewogICAgICAg
ICAgICAgbV9pbWFnZSA9IHRtcFBpeG1hcC50b0ltYWdlKCk7CiAgICAgICAgIH0KSW5kZXg6IGZy
YW1lLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09Ci0tLSBmcmFtZS5jcHAJKFJldmlzaW9uIDExMTE1MjApCisrKyBm
cmFtZS5jcHAJKEFyYmVpdHNrb3BpZSkKQEAgLTU2NCw3ICs1NjQsNiBAQAogICAgIFFEYXRlIG1D
dXJyZW50RGF0ZSA9IFFEYXRlOjpjdXJyZW50RGF0ZSgpOwogICAgIGNvbnN0IFFTdHJpbmcgaWRl
bnRpZmllciA9IG1fcG90ZFByb3ZpZGVyICsgJzonICsgbUN1cnJlbnREYXRlLnRvU3RyaW5nKFF0
OjpJU09EYXRlKTsKICAgICBlbmdpbmUtPmRpc2Nvbm5lY3RTb3VyY2UoaWRlbnRpZmllciwgbV9t
eVNsaWRlU2hvdyk7Ci0gICAgbV9wb3RkID0gZmFsc2U7CiB9CiAKIHZvaWQgRnJhbWU6OmluaXRT
bGlkZVNob3coKQpAQCAtNjI0LDYgKzYyMyw3IEBACiAgICAgfQogCiAgICAgc3RvcFBvdGQoKTsK
KyAgICBtX3BvdGQgPSBmYWxzZTsKICAgICBpbml0U2xpZGVTaG93KCk7CiAKICAgICBLQ29uZmln
R3JvdXAgY2cgPSBjb25maWcoKTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>42548</attachid>
            <date>2010-04-06 19:49:46 +0000</date>
            <delta_ts>2010-04-06 19:49:46 +0000</delta_ts>
            <desc>Picture of the Day Patch</desc>
            <filename>potd.patch</filename>
            <type>text/plain</type>
            <size>2194</size>
            <attacher name="Etienne">etienne.rebetez</attacher>
            
              <data encoding="base64">SW5kZXg6IHNsaWRlc2hvdy5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc2xpZGVzaG93LmNwcAkoUmV2aXNp
b24gMTExMTc5NykKKysrIHNsaWRlc2hvdy5jcHAJKEFyYmVpdHNrb3BpZSkKQEAgLTE5NiwyMCAr
MTk2LDIxIEBACiAKIHZvaWQgU2xpZGVTaG93OjpkYXRhVXBkYXRlZChjb25zdCBRU3RyaW5nICZu
YW1lLCBjb25zdCBQbGFzbWE6OkRhdGFFbmdpbmU6OkRhdGEgJmRhdGEpCiB7Ci0gICAgUV9VTlVT
RUQobmFtZSkKICAgICBpZiAoZGF0YS5pc0VtcHR5KCkpIHsKICAgICAgICAgbV9pbWFnZSA9IFFJ
bWFnZSgpOworICAgICAgICBtX3BpY3R1cmUtPnNldE1lc3NhZ2UoaTE4bigiTm8gUGljdHVyZSBm
b3QgdGhpcyBQcm92aWRlci4iKSk7CiAgICAgICAgIHJldHVybjsKICAgICB9CiAKLSAgICBtX2lt
YWdlID0gZGF0YVswXS52YWx1ZTxRSW1hZ2U+KCk7CisgICAgbV9pbWFnZSA9IGRhdGFbbmFtZV0u
dmFsdWU8UUltYWdlPigpOwogICAgIC8vQ29tcGF0aWJpbGl0eSB3aXRoIG9sZCBkYXRhZW5naW5l
cwogICAgIGlmIChtX2ltYWdlLmlzTnVsbCgpKXsKLSAgICAgICAgUVBpeG1hcCB0bXBQaXhtYXAg
PSBkYXRhWzBdLnZhbHVlPFFQaXhtYXA+KCk7CisgICAgICAgIFFQaXhtYXAgdG1wUGl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1fam9iOwogICAgIEtVcmwgdXJsKCk7CiAgICAgUVN0cmlu
ZyBtZXNzYWdlKCk7CisgICAgdm9pZCBzZXRNZXNzYWdlKGNvbnN0IFFTdHJpbmcgJm1lc3NhZ2Up
OwogCiBRX1NJR05BTFM6CiAgICAgdm9pZCBwaWN0dXJlTG9hZGVkKFFJbWFnZSBpbWFnZSk7Cklu
ZGV4OiBmcmFtZS5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gZnJhbWUuY3BwCShSZXZpc2lvbiAxMTExNzk3
KQorKysgZnJhbWUuY3BwCShBcmJlaXRza29waWUpCkBAIC01NjQsNyArNTY0LDYgQEAKICAgICBR
RGF0ZSBtQ3VycmVudERhdGUgPSBRRGF0ZTo6Y3VycmVudERhdGUoKTsKICAgICBjb25zdCBRU3Ry
aW5nIGlkZW50aWZpZXIgPSBtX3BvdGRQcm92aWRlciArICc6JyArIG1DdXJyZW50RGF0ZS50b1N0
cmluZyhRdDo6SVNPRGF0ZSk7CiAgICAgZW5naW5lLT5kaXNjb25uZWN0U291cmNlKGlkZW50aWZp
ZXIsIG1fbXlTbGlkZVNob3cpOwotICAgIG1fcG90ZCA9IGZhbHNlOwogfQogCiB2b2lkIEZyYW1l
Ojppbml0U2xpZGVTaG93KCkKQEAgLTYyNCw2ICs2MjMsNyBAQAogICAgIH0KIAogICAgIHN0b3BQ
b3RkKCk7CisgICAgbV9wb3RkID0gZmFsc2U7CiAgICAgaW5pdFNsaWRlU2hvdygpOwogCiAgICAg
S0NvbmZpZ0dyb3VwIGNnID0gY29uZmlnKCk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>