| 1861 | } |
| 1862 | |
| 1863 | void DirectoryMergeWindow::compareCurrentFile() |
| 1864 | { |
| 1865 | if(!d->canContinue()) return; |
| 1866 | |
| 1867 | if(d->m_bRealMergeStarted) |
| 1868 | { |
| 1869 | KMessageBox::error(this, i18n("This operation is currently not possible."), i18n("Operation Not Possible")); |
| 1870 | return; |
| 1871 | } |
| 1872 | QStringList errors; |
| 1873 | if(MergeFileInfos* pMFI = d->getMFI(currentIndex())) |
| 1874 | { |
| 1875 | if(!(pMFI->hasDir())) |
| 1876 | { |
| 1877 | Q_EMIT startDiffMerge(errors, |
| 1878 | pMFI->existsInA() ? pMFI->getFileInfoA()->absoluteFilePath() : QString(""), |
| 1879 | pMFI->existsInB() ? pMFI->getFileInfoB()->absoluteFilePath() : QString(""), |
| 1880 | pMFI->existsInC() ? pMFI->getFileInfoC()->absoluteFilePath() : QString(""), |
| 1881 | "", |
| 1882 | "", "", "", nullptr); |
| 1883 | } |
| 1884 | } |
| 1885 | Q_EMIT updateAvailabilities(); |
| 1886 | } |
| 1887 | |
| 1888 | void DirectoryMergeWindow::slotCompareExplicitlySelectedFiles() |
| 1889 | { |
nothing calls this directly
no test coverage detected