summaryrefslogtreecommitdiffstats
path: root/tdesu/tdesu/tdesu.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-11-28 00:04:05 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-11-28 00:04:05 +0900
commit6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b (patch)
tree154aa555033fe887b9b56d8a559000c89b166f1e /tdesu/tdesu/tdesu.cpp
parent3c2da5f0e188e1f1152da840bdf8d94ceb509671 (diff)
downloadtdebase-6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b.tar.gz
tdebase-6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b.zip
Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdesu/tdesu/tdesu.cpp')
-rw-r--r--tdesu/tdesu/tdesu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tdesu/tdesu/tdesu.cpp b/tdesu/tdesu/tdesu.cpp
index d75c0e83a..2849b4c62 100644
--- a/tdesu/tdesu/tdesu.cpp
+++ b/tdesu/tdesu/tdesu.cpp
@@ -344,7 +344,7 @@ static int startApp()
}
// Start the dialog
- TQCString password;
+ TQString password;
if (needpw)
{
TDEStartupInfoId id;
@@ -391,7 +391,7 @@ static int startApp()
}
else if (keep && have_daemon)
{
- client.setPass(password, timeout);
+ client.setPass(password.utf8(), timeout);
client.setPriority(priority);
client.setScheduler(scheduler);
int result = client.exec(command, user, options, env);
@@ -415,7 +415,7 @@ static int startApp()
proc.setPriority(priority);
proc.setScheduler(scheduler);
proc.setCommand(command);
- int result = proc.exec(password);
+ int result = proc.exec(password.utf8());
return result;
}
return -1;