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 | |||
@@ -111,5 +111,5 @@ void fileBrowser::listClicked(QListViewItem *selectedItem) | |||
111 | QString strItem=selectedItem->text(0); | 111 | QString strItem=selectedItem->text(0); |
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(); |
115 | // qDebug(strSize); | 115 | // qDebug(strSize); |
@@ -138,8 +138,11 @@ void fileBrowser::listClicked(QListViewItem *selectedItem) | |||
138 | populateList(); | 138 | populateList(); |
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 |
145 | chdir(strItem.latin1()); | 148 | chdir(strItem.latin1()); |
@@ -153,5 +156,5 @@ void fileBrowser::OnOK() | |||
153 | if ( it1.current()->isSelected() ) { | 156 | if ( it1.current()->isSelected() ) { |
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 ); |
157 | } | 160 | } |