Author: gs Date: Wed Mar 9 13:30:11 2011 New Revision: 63550 URL: http://svn.opensuse.org/viewcvs/yast?rev=63550&view=rev Log: Show block devices in file selection dialog (bnc #661685) Modified: branches/SuSE-Code-11-SP2-Branch/ncurses/package/yast2-ncurses.changes branches/SuSE-Code-11-SP2-Branch/ncurses/src/NCFileSelection.cc Modified: branches/SuSE-Code-11-SP2-Branch/ncurses/package/yast2-ncurses.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ncurses/package/yast2-ncurses.changes?rev=63550&r1=63549&r2=63550&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ncurses/package/yast2-ncurses.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/ncurses/package/yast2-ncurses.changes Wed Mar 9 13:30:11 2011 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed Mar 9 13:29:21 CET 2011 - gs@suse.de + +- Show block devices in file selection dialog (bnc #661685) + +------------------------------------------------------------------- Wed Feb 16 10:51:16 CET 2011 - gs@suse.de - NCMultiSelectionBox: adjust preferred width, avoid invalid Modified: branches/SuSE-Code-11-SP2-Branch/ncurses/src/NCFileSelection.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/ncurses/src/NCFileSelection.cc?rev=63550&r1=63549&r2=63550&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/ncurses/src/NCFileSelection.cc (original) +++ branches/SuSE-Code-11-SP2-Branch/ncurses/src/NCFileSelection.cc Wed Mar 9 13:30:11 2011 @@ -592,7 +592,7 @@ if ( lstat64( fullName.c_str(), &statInfo ) == 0 ) { - if ( S_ISREG( statInfo.st_mode ) ) + if ( S_ISREG( statInfo.st_mode ) || S_ISBLK( statInfo.st_mode ) ) { if ((( *it ) == ".." && currentDir != "/" ) || ( *it ) != ".." ) @@ -604,7 +604,7 @@ { if ( stat64( fullName.c_str(), &linkInfo ) == 0 ) { - if ( S_ISREG( linkInfo.st_mode ) ) + if ( S_ISREG( linkInfo.st_mode ) || S_ISBLK( linkInfo.st_mode ) ) { createListEntry( NCFileInfo(( *it ), &linkInfo, true ) ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org