fix(menu): empty trash option visible
This commit is contained in:
parent
ce716acdb7
commit
d2d39047ed
1 changed files with 1 additions and 1 deletions
|
@ -1864,7 +1864,7 @@ void FolderModel::updateActions()
|
|||
}
|
||||
|
||||
if (QAction *emptyTrash = m_actionCollection.action("emptyTrash")) {
|
||||
emptyTrash->setVisible(isTrash);
|
||||
emptyTrash->setVisible(isTrash && rowCount() > 0);
|
||||
}
|
||||
|
||||
if (QAction *del = m_actionCollection.action(QStringLiteral("del"))) {
|
||||
|
|
Loading…
Reference in a new issue