Skip to content

Commit

Permalink
CrateFeature: show context menu to add crate when right clicking empt…
Browse files Browse the repository at this point in the history
…y area
  • Loading branch information
Be-ing committed Jun 23, 2018
1 parent e4da311 commit 337eb3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/library/features/crates/cratefeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ void CrateFeature::onRightClickChild(const QPoint& globalPos, const QModelIndex&

CrateId crateId(crateIdFromIndex(index));
if (!crateId.isValid()) {
// show the same context menu as if root item was right clicked
onRightClick(globalPos);
return;
}

Expand Down

0 comments on commit 337eb3d

Please sign in to comment.