From 4a21d9487132c92a58db45c5dd8ef02d2849468b Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Fri, 10 Jan 2025 17:58:41 -0300 Subject: [PATCH] Fix -PKG Viewer -Button install (#2113) https://github.com/shadps4-emu/shadPS4/issues/2112 --- src/qt_gui/pkg_viewer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qt_gui/pkg_viewer.cpp b/src/qt_gui/pkg_viewer.cpp index 0ffb9b57..b4dd3afd 100644 --- a/src/qt_gui/pkg_viewer.cpp +++ b/src/qt_gui/pkg_viewer.cpp @@ -47,6 +47,9 @@ PKGViewer::PKGViewer(std::shared_ptr game_info_get, QWidget* pare connect(treeWidget, &QTreeWidget::customContextMenuRequested, this, [=, this](const QPoint& pos) { + if (treeWidget->selectedItems().isEmpty()) { + return; + } m_gui_context_menus.RequestGameMenuPKGViewer(pos, m_full_pkg_list, treeWidget, InstallDragDropPkg); });