diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-25 11:16:21 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-09-07 21:46:30 +0200 |
commit | 2c98275b5196fcd1c0c479a3a357a44fce324e07 (patch) | |
tree | 0747bd667536fe887b844f92c4c1c6cad0613f8b /src/citra_qt/debugger/graphics_vertex_shader.cpp | |
parent | Shader Debugger: Fix only first vertex attribute being loaded (diff) | |
download | yuzu-2c98275b5196fcd1c0c479a3a357a44fce324e07.tar yuzu-2c98275b5196fcd1c0c479a3a357a44fce324e07.tar.gz yuzu-2c98275b5196fcd1c0c479a3a357a44fce324e07.tar.bz2 yuzu-2c98275b5196fcd1c0c479a3a357a44fce324e07.tar.lz yuzu-2c98275b5196fcd1c0c479a3a357a44fce324e07.tar.xz yuzu-2c98275b5196fcd1c0c479a3a357a44fce324e07.tar.zst yuzu-2c98275b5196fcd1c0c479a3a357a44fce324e07.zip |
Diffstat (limited to 'src/citra_qt/debugger/graphics_vertex_shader.cpp')
-rw-r--r-- | src/citra_qt/debugger/graphics_vertex_shader.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp index 831ead51a..64a3569d4 100644 --- a/src/citra_qt/debugger/graphics_vertex_shader.cpp +++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp @@ -361,9 +361,6 @@ GraphicsVertexShaderWidget::GraphicsVertexShaderWidget(std::shared_ptr< Pica::De cycle_index = new QSpinBox; - connect(this, SIGNAL(SelectCommand(const QModelIndex&, QItemSelectionModel::SelectionFlags)), - binary_list->selectionModel(), SLOT(select(const QModelIndex&, QItemSelectionModel::SelectionFlags))); - connect(dump_shader, SIGNAL(clicked()), this, SLOT(DumpShader())); connect(cycle_index, SIGNAL(valueChanged(int)), this, SLOT(OnCycleIndexChanged(int))); @@ -550,7 +547,7 @@ void GraphicsVertexShaderWidget::OnCycleIndexChanged(int index) { instruction_description->setText(text); // Scroll to current instruction - const QModelIndex& instr_index = model->index(record.instruction_offset, 0); - emit SelectCommand(instr_index, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); + QModelIndex instr_index = model->index(record.instruction_offset, 0); + binary_list->selectionModel()->select(instr_index, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); binary_list->scrollTo(instr_index, QAbstractItemView::EnsureVisible); } |