Improve KIO plugin code

This commit is contained in:
Martchus 2017-03-17 00:34:53 +01:00
parent 5af4214b78
commit 39f8bc36cf
1 changed files with 2 additions and 2 deletions

View File

@ -205,8 +205,8 @@ QList<QAction *> SyncthingFileItemAction::actions(const KFileItemListProperties
return QList<QAction *>() << menuAction;
}
QList<QAction *> actions = createActions(fileItemInfo, parentWidget);
// don't show anything if relevant actions could be determined
const QList<QAction *> actions = createActions(fileItemInfo, parentWidget);
// don't show anything if no relevant actions could be determined
if(actions.isEmpty()) {
return actions;
}