From kde-core-devel Thu Sep 14 02:58:43 2000 From: Charles Date: Thu, 14 Sep 2000 02:58:43 +0000 To: kde-core-devel Subject: Broken kcmnotify X-MARC-Message: https://marc.info/?l=kde-core-devel&m=96890026329554 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------Boundary-00=_V9WUC3J0I7YBGQYK8JAE" --------------Boundary-00=_V9WUC3J0I7YBGQYK8JAE Content-Type: text/plain Content-Transfer-Encoding: quoted-printable This quick fix just makes the "Sounds" work. In addition to my previous post to this list, please review it. Noting that I really don't see how it's possible for anyone to say "no" t= o=20 these, but, oh well ;) -Chaarles=00 --------------Boundary-00=_V9WUC3J0I7YBGQYK8JAE Content-Type: text/plain; name="events.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="events.diff" Index: events.cpp =================================================================== RCS file: /home/kde/kdebase/kcontrol/knotify/events.cpp,v retrieving revision 1.4 diff -u -r1.4 events.cpp --- events.cpp 2000/08/17 19:36:40 1.4 +++ events.cpp 2000/09/14 02:55:12 @@ -118,7 +118,7 @@ QString presentation = QString::fromLatin1("presentation"); QString soundfile = QString::fromLatin1("soundfile"); QString logfile = QString::fromLatin1("logfile"); - + KNEventListIterator it( *m_events ); KNEvent *e; while ( (e = it.current()) ) { @@ -126,7 +126,7 @@ kc->writeEntry( presentation, e->presentation ); kc->writeEntry( soundfile, e->soundfile ); kc->writeEntry( logfile, e->logfile ); - + ++it; } kc->sync(); @@ -148,7 +148,7 @@ QString defpresentation = QString::fromLatin1("default_presentation"); QString nopresentation = QString::fromLatin1("nopresentation"); QString soundfile = QString::fromLatin1("soundfile"); - QString defsoundfile = QString::fromLatin1("default_soundfile"); + QString defsoundfile = QString::fromLatin1("default_sound"); QString logfile = QString::fromLatin1("logfile"); QString deflogfile = QString::fromLatin1("default_logfile"); @@ -163,7 +163,7 @@ e->name = kc->readEntry( name, unknown ); e->description = kc->readEntry( comment, nodesc ); e->configGroup = *it; - + if ( e->name.isEmpty() || e->description.isEmpty() ) delete e; @@ -174,7 +174,7 @@ e->logfile = kc->readEntry(logfile, kc->readEntry(deflogfile)); e->soundfile = kc->readEntry( soundfile, kc->readEntry( defsoundfile )); - + m_events->append( e ); } } --------------Boundary-00=_V9WUC3J0I7YBGQYK8JAE--