Lines 1-48
Link Here
|
1 |
--- ./src-QT4/fileaccess.cpp.orig 2012-08-10 16:51:08.000000000 -0500 |
|
|
2 |
+++ ./src-QT4/fileaccess.cpp 2014-06-05 09:45:18.675613156 -0500 |
3 |
@@ -183,7 +183,8 @@ |
4 |
|
5 |
void FileAccess::setFile( const QFileInfo& fi, FileAccess* pParent ) |
6 |
{ |
7 |
- m_filePath = nicePath( fi.filePath() ); // remove "./" at start |
8 |
+ m_filePath = pParent == 0 ? fi.absoluteFilePath() : |
9 |
+ nicePath( fi.filePath() ); // remove "./" at start |
10 |
|
11 |
m_bSymLink = fi.isSymLink(); |
12 |
if ( m_bSymLink || (!m_bExists && m_filePath.contains("@@") ) ) |
13 |
@@ -566,7 +567,16 @@ |
14 |
if ( parent() != 0 ) |
15 |
return parent()->absoluteFilePath() + "/" + m_filePath; |
16 |
else |
17 |
- return m_filePath; |
18 |
+ { |
19 |
+ if ( m_filePath.isEmpty() ) |
20 |
+ return QString(); |
21 |
+ |
22 |
+ QFileInfo fi( m_filePath ); |
23 |
+ if ( fi.isAbsolute() ) |
24 |
+ return m_filePath; |
25 |
+ else |
26 |
+ return fi.absoluteFilePath(); // Probably never reached |
27 |
+ } |
28 |
} // Full abs path |
29 |
|
30 |
// Just the name-part of the path, without parent directories |
31 |
@@ -1184,7 +1194,7 @@ |
32 |
m_bSuccess = false; |
33 |
KIO::FileCopyJob* pJob = KIO::file_move( m_pFileAccess->url(), kurl, permissions, KIO::HideProgressInfo ); |
34 |
connect( pJob, SIGNAL(result(KJob*)), this, SLOT(slotSimpleJobResult(KJob*))); |
35 |
- connect( pJob, SIGNAL(percent(KJob*,unsigned long)), this, SLOT(slotPercent(KJob*, unsigned long))); |
36 |
+ connect( pJob, SIGNAL(percent(KJob*,unsigned long)), &pp, SLOT(slotPercent(KJob*, unsigned long))); |
37 |
|
38 |
ProgressProxy::enterEventLoop( pJob, |
39 |
i18n("Renaming file: %1 -> %2",m_pFileAccess->prettyAbsPath(),dest) ); |
40 |
@@ -1673,7 +1683,7 @@ |
41 |
&pp, SLOT( slotListDirInfoMessage(KJob*, const QString&) )); |
42 |
|
43 |
// This line makes the transfer via fish unreliable.:-( |
44 |
- //connect( pListJob, SIGNAL(percent(KJob*,unsigned long)), this, SLOT(slotPercent(KJob*, unsigned long))); |
45 |
+ //connect( pListJob, SIGNAL(percent(KJob*,unsigned long)), &pp, SLOT(slotPercent(KJob*, unsigned long))); |
46 |
|
47 |
ProgressProxy::enterEventLoop( pListJob, |
48 |
i18n("Listing directory: %1",m_pFileAccess->prettyAbsPath()) ); |