Skip to content

Commit

Permalink
use QModelIndex instead
Browse files Browse the repository at this point in the history
  • Loading branch information
r3yc0n1c committed Apr 5, 2024
1 parent f1733b0 commit 625784f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[submodule "rizin"]
path = rizin
url = https://github.com/rizinorg/rizin
branch = dev
[submodule "src/translations"]
path = src/translations
url = https://github.com/rizinorg/cutter-translations
url = https://github.com/rizinorg/cutter-translations
2 changes: 1 addition & 1 deletion rizin
7 changes: 3 additions & 4 deletions src/dialogs/VersionInfoDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@ void VersionInfoDialog::clearSelectionOnClose()
ui->rightTreeWidget->clearSelection();

// remove default "current" item selection after dialog close
auto model = ui->leftTreeWidget->model();
ui->leftTreeWidget->setCurrentIndex(model->index(-1, -1));
model = ui->rightTreeWidget->model();
ui->leftTreeWidget->setCurrentIndex(model->index(-1, -1));
QModelIndex defaultIndex;
ui->leftTreeWidget->setCurrentIndex(defaultIndex);
ui->rightTreeWidget->setCurrentIndex(defaultIndex);
}

void VersionInfoDialog::CopyTreeWidgetSelection(QTreeWidget *t)
Expand Down

0 comments on commit 625784f

Please sign in to comment.