fixed crasher with unknown filesystems.
* include/Utils.h: fixed crasher with unknown filesystems.
This commit is contained in:
parent
7dd48df0b2
commit
d6be9833ff
|
@ -1,3 +1,7 @@
|
||||||
|
2004-11-22 Bart Hakvoort <gparted@users.sf.net>
|
||||||
|
|
||||||
|
* include/Utils.h: fixed crasher with unknown filesystems.
|
||||||
|
|
||||||
2004-11-22 Bart Hakvoort <gparted@users.sf.net>
|
2004-11-22 Bart Hakvoort <gparted@users.sf.net>
|
||||||
|
|
||||||
* src/GParted_Core.cc: cosmetics
|
* src/GParted_Core.cc: cosmetics
|
||||||
|
|
|
@ -104,9 +104,9 @@ inline FS Get_FS( const Glib::ustring & filesystem, const std::vector<FS> & FILE
|
||||||
|
|
||||||
for ( t = 0 ; t < FILESYSTEMS .size( ) ; t++ )
|
for ( t = 0 ; t < FILESYSTEMS .size( ) ; t++ )
|
||||||
if ( FILESYSTEMS[ t ] .filesystem == filesystem )
|
if ( FILESYSTEMS[ t ] .filesystem == filesystem )
|
||||||
break ;
|
|
||||||
|
|
||||||
return FILESYSTEMS[ t ] ;
|
return FILESYSTEMS[ t ] ;
|
||||||
|
|
||||||
|
return FILESYSTEMS .back( ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Glib::ustring Get_Color( const Glib::ustring & filesystem )
|
inline Glib::ustring Get_Color( const Glib::ustring & filesystem )
|
||||||
|
|
Loading…
Reference in New Issue