| 701 | } |
| 702 | |
| 703 | void CMainWindow::pasteCurrentFilePath() |
| 704 | { |
| 705 | if (_currentFileList && _currentFileList->currentItemHash() != 0) |
| 706 | { |
| 707 | QString textToAdd = toNativeSeparators(_controller->itemByHash(_currentFileList->panelPosition(), _currentFileList->currentItemHash()).fullAbsolutePath()); |
| 708 | if (textToAdd.contains(' ')) |
| 709 | textToAdd = '\"' % textToAdd % '\"'; |
| 710 | |
| 711 | const QString newText = ui->_commandLine->lineEdit()->text().isEmpty() ? textToAdd : (ui->_commandLine->lineEdit()->text() % ' ' % textToAdd); |
| 712 | ui->_commandLine->lineEdit()->setText(newText); |
| 713 | } |
| 714 | } |
| 715 | |
| 716 | void CMainWindow::refresh() |
| 717 | { |
nothing calls this directly
no test coverage detected