author | llornkcor <llornkcor> | 2002-02-19 00:32:58 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-19 00:32:58 (UTC) |
commit | 2308c4db692821721bbe82f93fd60f275f4cccdc (patch) (side-by-side diff) | |
tree | f037b4f4fd40201e5328132e643dca83bdf12651 /core/apps/textedit/fileBrowser.cpp | |
parent | 7e308434f08fe6e8257a5c6b11a62e3ee3934d3b (diff) | |
download | opie-2308c4db692821721bbe82f93fd60f275f4cccdc.zip opie-2308c4db692821721bbe82f93fd60f275f4cccdc.tar.gz opie-2308c4db692821721bbe82f93fd60f275f4cccdc.tar.bz2 |
fixed several silly bugs having to do with Doclnk stuff..
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 @@ -107,13 +107,13 @@ void fileBrowser::listDoubleClicked(QListViewItem *selectedItem) // you may want to switch these 2 functions. I like single clicks void fileBrowser::listClicked(QListViewItem *selectedItem) { QString strItem=selectedItem->text(0); QString strSize=selectedItem->text(1); -// qDebug("strItem is "+strItem); +// qDebug("strItem is "+strItem); strSize.stripWhiteSpace(); // qDebug(strSize); if(strItem.find("@",0,TRUE) !=-1 || strItem.find("->",0,TRUE) !=-1 ) { //if symlink // is symlink QString strItem2=strItem.right( (strItem.length()-strItem.find("->",0,TRUE)) -4); @@ -134,27 +134,30 @@ void fileBrowser::listClicked(QListViewItem *selectedItem) populateList(); } if(QDir(strItem).exists()){ currentDir.cd(strItem, TRUE); populateList(); } - } else + } else { + strItem=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem); if( QFile::exists(strItem ) ) { -// qDebug("We found our files!!"); +//currentDir.canonicalPath() + qDebug("We found our files!!"+strItem); OnOK(); + } } //end not symlink chdir(strItem.latin1()); } } void fileBrowser::OnOK() { QListViewItemIterator it1( ListView); for ( ; it1.current(); ++it1 ) { if ( it1.current()->isSelected() ) { selectedFileName=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+it1.current()->text(0)); -// qDebug("selected filename is "+selectedFileName); + qDebug("selected filename is "+selectedFileName); fileList.append( selectedFileName ); } } accept(); } |