mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 18:09:59 +03:00
Final clean up for pull request
Signed-off-by: Ice Yeti <101294194+IceYetiWins@users.noreply.github.com>
This commit is contained in:
parent
cb105b720b
commit
08d9e57d96
10 changed files with 44 additions and 44 deletions
|
|
@ -207,13 +207,13 @@ void InstanceView::updateGeometries()
|
|||
viewport()->update();
|
||||
}
|
||||
|
||||
void InstanceView::selectInstance(BaseInstance* instance)
|
||||
void InstanceView::selectInstance(const BaseInstance* instance) const
|
||||
{
|
||||
QModelIndex index;
|
||||
|
||||
for (int row = 0; row < model()->rowCount(); row++) {
|
||||
for (int j = 0; j < model()->columnCount(); j++) {
|
||||
auto testIndex = model()->index(row, j);
|
||||
for (int col = 0; col < model()->columnCount(); col++) {
|
||||
auto testIndex = model()->index(row, col);
|
||||
if (testIndex.data(InstanceList::InstanceIDRole).toString() == instance->id()) {
|
||||
index = testIndex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue