Diffstat (limited to 'core/apps/textedit/fileBrowser.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileBrowser.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp index 82ccf2c..bb420e6 100644 --- a/core/apps/textedit/fileBrowser.cpp +++ b/core/apps/textedit/fileBrowser.cpp | |||
@@ -112,3 +112,3 @@ void fileBrowser::listClicked(QListViewItem *selectedItem) | |||
112 | QString strSize=selectedItem->text(1); | 112 | QString strSize=selectedItem->text(1); |
113 | // qDebug("strItem is "+strItem); | 113 | // qDebug("strItem is "+strItem); |
114 | strSize.stripWhiteSpace(); | 114 | strSize.stripWhiteSpace(); |
@@ -139,6 +139,9 @@ void fileBrowser::listClicked(QListViewItem *selectedItem) | |||
139 | } | 139 | } |
140 | } else | 140 | } else { |
141 | strItem=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem); | ||
141 | if( QFile::exists(strItem ) ) { | 142 | if( QFile::exists(strItem ) ) { |
142 | // qDebug("We found our files!!"); | 143 | //currentDir.canonicalPath() |
144 | qDebug("We found our files!!"+strItem); | ||
143 | OnOK(); | 145 | OnOK(); |
146 | } | ||
144 | } //end not symlink | 147 | } //end not symlink |
@@ -154,3 +157,3 @@ void fileBrowser::OnOK() | |||
154 | selectedFileName=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+it1.current()->text(0)); | 157 | selectedFileName=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+it1.current()->text(0)); |
155 | // qDebug("selected filename is "+selectedFileName); | 158 | qDebug("selected filename is "+selectedFileName); |
156 | fileList.append( selectedFileName ); | 159 | fileList.append( selectedFileName ); |