summaryrefslogtreecommitdiff
path: root/core/applets/volumeapplet/volumeappletimpl.cpp
Unidiff
Diffstat (limited to 'core/applets/volumeapplet/volumeappletimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/volumeapplet/volumeappletimpl.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/applets/volumeapplet/volumeappletimpl.cpp b/core/applets/volumeapplet/volumeappletimpl.cpp
index 943e71a..47506cc 100644
--- a/core/applets/volumeapplet/volumeappletimpl.cpp
+++ b/core/applets/volumeapplet/volumeappletimpl.cpp
@@ -33,21 +33,12 @@ VolumeAppletImpl::~VolumeAppletImpl()
33} 33}
34 34
35QWidget *VolumeAppletImpl::applet( QWidget *parent ) 35QWidget *VolumeAppletImpl::applet( QWidget *parent )
36{ 36{
37 if ( !volume ) 37 if ( !volume )
38 volume = new VolumeApplet( parent ); 38 volume = new VolumeApplet( parent );
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
48 return volume; 39 return volume;
49} 40}
50 41
51int VolumeAppletImpl::position() const 42int VolumeAppletImpl::position() const
52{ 43{
53 return 6; 44 return 6;