Improve KIO plugin code
This commit is contained in:
parent
5af4214b78
commit
39f8bc36cf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue