mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Use current item instead of last selected item in onclick handler
This commit is contained in:
@@ -122,12 +122,10 @@ void EnvironmentEditor::on_variables_keyPress(QKeyEvent *event)
|
||||
void EnvironmentEditor::on_variables_currentItemChanged(RDTreeWidgetItem *current,
|
||||
RDTreeWidgetItem *previous)
|
||||
{
|
||||
RDTreeWidgetItem *sel = ui->variables->selectedItem();
|
||||
|
||||
if(!sel)
|
||||
if(!current)
|
||||
return;
|
||||
|
||||
EnvironmentModification mod = sel->tag().value<EnvironmentModification>();
|
||||
EnvironmentModification mod = current->tag().value<EnvironmentModification>();
|
||||
|
||||
if(!mod.value.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user