Changeset View
Changeset View
Standalone View
Standalone View
app/fileopscontextmanageritem.cpp
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Line(s) | |||||
324 | { | 324 | { | ||
325 | KIO::RestoreJob *job = KIO::restoreFromTrash(urlList()); | 325 | KIO::RestoreJob *job = KIO::restoreFromTrash(urlList()); | ||
326 | KJobWidgets::setWindow(job, mGroup); | 326 | KJobWidgets::setWindow(job, mGroup); | ||
327 | job->uiDelegate()->setAutoErrorHandlingEnabled(true); | 327 | job->uiDelegate()->setAutoErrorHandlingEnabled(true); | ||
328 | } | 328 | } | ||
329 | 329 | | |||
330 | void FileOpsContextManagerItem::copyTo() | 330 | void FileOpsContextManagerItem::copyTo() | ||
331 | { | 331 | { | ||
332 | FileOperations::copyTo(urlList(), mGroup); | 332 | FileOperations::copyTo(urlList(), widget(), contextManager()); | ||
333 | } | 333 | } | ||
334 | 334 | | |||
335 | void FileOpsContextManagerItem::moveTo() | 335 | void FileOpsContextManagerItem::moveTo() | ||
336 | { | 336 | { | ||
337 | FileOperations::moveTo(urlList(), mGroup); | 337 | FileOperations::moveTo(urlList(), widget(), contextManager()); | ||
338 | } | 338 | } | ||
339 | 339 | | |||
340 | void FileOpsContextManagerItem::linkTo() | 340 | void FileOpsContextManagerItem::linkTo() | ||
341 | { | 341 | { | ||
342 | FileOperations::linkTo(urlList(), mGroup); | 342 | FileOperations::linkTo(urlList(), widget(), contextManager()); | ||
343 | } | 343 | } | ||
344 | 344 | | |||
345 | void FileOpsContextManagerItem::rename() | 345 | void FileOpsContextManagerItem::rename() | ||
346 | { | 346 | { | ||
347 | if (mThumbnailView->isVisible()) { | 347 | if (mThumbnailView->isVisible()) { | ||
348 | QModelIndex index = mThumbnailView->currentIndex(); | 348 | QModelIndex index = mThumbnailView->currentIndex(); | ||
349 | mThumbnailView->edit(index); | 349 | mThumbnailView->edit(index); | ||
350 | } else { | 350 | } else { | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |