[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Broken kcmnotify
From: Charles <charles () altair ! dhs ! org>
Date: 2000-09-14 2:58:43
[Download RAW message or body]
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" to
these, but, oh well ;)
-Chaarles
["events.diff" (text/plain)]
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 );
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic