-rw-r--r-- | core/applets/volumeapplet/volume.cpp | 7 | ||||
-rw-r--r-- | core/applets/volumeapplet/volumeappletimpl.cpp | 12 |
2 files changed, 17 insertions, 2 deletions
diff --git a/core/applets/volumeapplet/volume.cpp b/core/applets/volumeapplet/volume.cpp index 069f8ab..19e71c5 100644 --- a/core/applets/volumeapplet/volume.cpp +++ b/core/applets/volumeapplet/volume.cpp | |||
@@ -332,2 +332,9 @@ void VolumeApplet::mute( bool toggled ) | |||
332 | writeSystemVolume(); | 332 | writeSystemVolume(); |
333 | Config cfg("qpe"); | ||
334 | cfg.setGroup("Volume"); | ||
335 | if(muted) | ||
336 | cfg.writeEntry("Mute", "TRUE"); | ||
337 | else | ||
338 | cfg.writeEntry("Mute", "FALSE"); | ||
339 | cfg.write(); | ||
333 | } | 340 | } |
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp index fb2b79f..943e71a 100644 --- a/core/applets/volumeapplet/volumeappletimpl.cpp +++ b/core/applets/volumeapplet/volumeappletimpl.cpp | |||
@@ -22,3 +22,3 @@ | |||
22 | #include <qpe/qcopenvelope_qws.h> | 22 | #include <qpe/qcopenvelope_qws.h> |
23 | 23 | #include <qpe/config.h> | |
24 | 24 | ||
@@ -38,3 +38,11 @@ QWidget *VolumeAppletImpl::applet( QWidget *parent ) | |||
38 | volume = new VolumeApplet( parent ); | 38 | volume = new VolumeApplet( parent ); |
39 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << TRUE; //mute | 39 | |
40 | Config cfg("qpe"); | ||
41 | cfg.setGroup("Volume"); | ||
42 | QString foo = cfg.readEntry("Mute","TRUE"); | ||
43 | bool muted; | ||
44 | if(foo.find("TRUE",0,TRUE) != -1) | ||
45 | muted = TRUE; | ||
46 | else muted = FALSE; | ||
47 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << muted; //mute | ||
40 | return volume; | 48 | return volume; |