From: Shie E. <er...@us...> - 2005-01-26 11:23:53
|
Update of /cvsroot/krusader/krusader_kde3/krusader/Panel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5977 Modified Files: krview.cpp Log Message: fix: crash resulting from the fact that virt:/ has no items at all and view was buggy about that Index: krview.cpp =================================================================== RCS file: /cvsroot/krusader/krusader_kde3/krusader/Panel/krview.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** krview.cpp 24 Jan 2005 16:31:25 -0000 1.14 --- krview.cpp 26 Jan 2005 11:23:41 -0000 1.15 *************** *** 99,103 **** // if all else fails, take the current item ! if ( names->empty() && ( getCurrentItem() != ".." ) ) names->append( getCurrentItem() ); } --- 99,104 ---- // if all else fails, take the current item ! QString item = getCurrentItem(); ! if ( names->empty() && item!=QString::null && item!=".." ) names->append( item ); } *************** *** 107,111 **** // if all else fails, take the current item ! if ( items->empty() && ( getCurrentItem() != ".." ) ) items->append( getCurrentKrViewItem() ); } --- 108,113 ---- // if all else fails, take the current item ! QString item = getCurrentItem(); ! if ( items->empty() && item!=QString::null && item!=".." ) items->append( getCurrentKrViewItem() ); } |