mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
Fix latent bug with adding '&' or '*' to variable for visualizers.
This commit is contained in:
@@ -360,6 +360,9 @@ void SeerVariableLoggerBrowserWidget::handleContextMenu (const QPoint& pos) {
|
||||
}
|
||||
}
|
||||
|
||||
// Remove potential '&' and '*' characters at start of string.
|
||||
variable.remove(QRegularExpression("^[\\*\\&]*"));
|
||||
|
||||
addMemoryVisualizerAction->setText(QString("\"%1\"").arg(actionText));
|
||||
addMemoryAsteriskVisualizerAction->setText(QString("\"*%1\"").arg(actionText));
|
||||
addMemoryAmpersandVisualizerAction->setText(QString("\"&&%1\"").arg(actionText));
|
||||
|
||||
@@ -608,6 +608,9 @@ void SeerVariableTrackerBrowserWidget::handleContextMenu (const QPoint& pos) {
|
||||
}
|
||||
}
|
||||
|
||||
// Remove potential '&' and '*' characters at start of string.
|
||||
variable.remove(QRegularExpression("^[\\*\\&]*"));
|
||||
|
||||
addMemoryVisualizerAction->setText(QString("\"%1\"").arg(actionText));
|
||||
addMemoryAsteriskVisualizerAction->setText(QString("\"*%1\"").arg(actionText));
|
||||
addMemoryAmpersandVisualizerAction->setText(QString("\"&&%1\"").arg(actionText));
|
||||
|
||||
Reference in New Issue
Block a user