diff --git a/apps/launcher/datafilespage.cpp b/apps/launcher/datafilespage.cpp index 2e8cdfbd2..45ea9dde8 100644 --- a/apps/launcher/datafilespage.cpp +++ b/apps/launcher/datafilespage.cpp @@ -643,7 +643,11 @@ void DataFilesPage::scrollToSelection() void DataFilesPage::showContextMenu(const QPoint &point) { - + // Make sure there are plugins in the view + if (!mPluginsTable->selectionModel()->hasSelection()) { + return; + } + QPoint globalPos = mPluginsTable->mapToGlobal(point); QModelIndexList selectedIndexes = mPluginsTable->selectionModel()->selectedIndexes();