mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-21 09:20:13 +00:00
fix initializer list
This commit is contained in:
parent
30175dcbde
commit
7a3310ce73
|
@ -193,7 +193,7 @@ void TreeViewContextMenu::rename()
|
|||
|
||||
void TreeViewContextMenu::moveToTrash()
|
||||
{
|
||||
const QList<QUrl> list {QList<QUrl>() << m_fileItem.url()};
|
||||
const QList<QUrl> list {m_fileItem.url()};
|
||||
KIO::JobUiDelegate uiDelegate;
|
||||
uiDelegate.setWindow(m_parent);
|
||||
if (uiDelegate.askDeleteConfirmation(list, KIO::JobUiDelegate::Trash, KIO::JobUiDelegate::DefaultConfirmation)) {
|
||||
|
@ -206,7 +206,7 @@ void TreeViewContextMenu::moveToTrash()
|
|||
|
||||
void TreeViewContextMenu::deleteItem()
|
||||
{
|
||||
const QList<QUrl> list {QList<QUrl>() << m_fileItem.url()};
|
||||
const QList<QUrl> list {m_fileItem.url()};
|
||||
KIO::JobUiDelegate uiDelegate;
|
||||
uiDelegate.setWindow(m_parent);
|
||||
if (uiDelegate.askDeleteConfirmation(list, KIO::JobUiDelegate::Delete, KIO::JobUiDelegate::DefaultConfirmation)) {
|
||||
|
|
Loading…
Reference in a new issue