| 515 | } |
| 516 | |
| 517 | ProjectFolderItem* AbstractFileManagerPlugin::addFolder( const Path& folder, |
| 518 | ProjectFolderItem * parent ) |
| 519 | { |
| 520 | Q_D(AbstractFileManagerPlugin); |
| 521 | |
| 522 | qCDebug(FILEMANAGER) << "adding folder" << folder << "to" << parent->path(); |
| 523 | ProjectFolderItem* created = nullptr; |
| 524 | d->stopWatcher(parent); |
| 525 | if ( createFolder(folder.toUrl()) ) { |
| 526 | created = createFolderItem( parent->project(), folder, parent ); |
| 527 | if (created) { |
| 528 | emit folderAdded(created); |
| 529 | } |
| 530 | } |
| 531 | d->continueWatcher(parent); |
| 532 | return created; |
| 533 | } |
| 534 | |
| 535 | |
| 536 | ProjectFileItem* AbstractFileManagerPlugin::addFile( const Path& file, |
no test coverage detected