Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > b2e3ac505bd14bf924e2c9becacc2082 > files > 3

kpowersave-0.7.2-16mdv2008.0.src.rpm

--- kpowersave-0.7.2/src/kpowersave.cpp--	2007-03-20 16:25:53.000000000 +0100
+++ kpowersave-0.7.2/src/kpowersave.cpp	2007-03-20 16:26:31.000000000 +0100
@@ -813,10 +813,7 @@
 		}
 		DCOPReply reply = dcop_ref.call(_method.latin1());
 		if ( reply.isValid() ) {
-			// this is ugly ... 
-			QString _tmp = reply;
-			_errormsg = _tmp;
-
+			reply.get(_errormsg);
 			if (_errormsg.isEmpty()) {
 				return true;
 			} else {
@@ -839,7 +836,7 @@
 		QString _suspend;
 
 		if (!_errormsg.isEmpty()) {
-			_e_msg = i18n(_errormsg);
+			_e_msg = _errormsg;
 		} else {
 			_e_msg = i18n("Could not call DCOP interface to umount external media.");
 		}