Prevent crash when opening the folders context menu if a folder is not selected

This commit is contained in:
luisangelsm
2025-12-13 11:06:01 +01:00
parent 626ac14d01
commit d16232dcc7

View File

@ -2594,6 +2594,9 @@ void LibraryWindow::showFoldersContextMenu(const QPoint &point)
{
QModelIndex sourceMI = foldersModelProxy->mapToSource(foldersView->indexAt(point));
if (!sourceMI.isValid())
return;
auto folder = foldersModel->getFolder(sourceMI);
actions.setFolderAsNormalAction->setCheckable(true);