mirror of
https://github.com/KDE/konsole.git
synced 2026-06-10 06:55:13 -04:00
Revert "Port to KF5/Qt5"
This reverts commit 4adfbe84bd.
This work will go into a new branch instead
This commit is contained in:
@@ -141,7 +141,7 @@ bool ShellCommand::expandEnv(QString& text)
|
||||
|
||||
const int len = endPos - dollarPos;
|
||||
const QString key = text.mid(dollarPos + 1, len - 1);
|
||||
const QString value = QString::fromLocal8Bit(qgetenv(key.toLocal8Bit().constData()));
|
||||
const QString value = QString::fromLocal8Bit(qgetenv(key.toLocal8Bit()));
|
||||
|
||||
if (!value.isEmpty()) {
|
||||
text.replace(dollarPos, len, value);
|
||||
|
||||
Reference in New Issue
Block a user