forked from qt-creator/qt-creator
Utils: Allow editing disabled environment variables
Task-number: QTCREATORBUG-32495 Change-Id: Ic2a8d9ea4f3e6884dde02e706ee4ef801ab52b6c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -115,6 +115,10 @@ bool NameValueItemsWidget::editVariable(const QString &name, Selection selection
|
||||
}
|
||||
};
|
||||
skipWhiteSpace();
|
||||
if (offset < line.length() && line.at(offset) == '#') {
|
||||
++offset;
|
||||
skipWhiteSpace();
|
||||
}
|
||||
if (line.mid(offset, name.size()) != name)
|
||||
continue;
|
||||
offset += name.size();
|
||||
|
Reference in New Issue
Block a user