Skip to content

Commit

Permalink
Update AccountListPage.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: be4dev <[email protected]>
  • Loading branch information
be4dev authored Apr 7, 2024
1 parent 6c15982 commit cecf25a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launcher/ui/pages/global/AccountListPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ void AccountListPage::on_actionUploadSkin_triggered()
void AccountListPage::on_actionDeleteSkin_triggered()
{
QModelIndexList selection = ui->listView->selectionModel()->selectedIndexes();
if (selection.size() <= 0)
if (selection.size() <= 0) {
return;
}

QModelIndex selected = selection.first();
MinecraftAccountPtr account = selected.data(AccountList::PointerRole).value<MinecraftAccountPtr>();
Expand Down

0 comments on commit cecf25a

Please sign in to comment.