Author: mcalmer Date: Fri Oct 12 17:57:49 2007 New Revision: 41414 URL: http://svn.opensuse.org/viewcvs/yast?rev=41414&view=rev Log: enhance filter list for browser window Modified: trunk/ca-management/src/util.ycp Modified: trunk/ca-management/src/util.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ca-management/src/util.ycp?rev=41414&r1=41413&r2=41414&view=diff ============================================================================== --- trunk/ca-management/src/util.ycp (original) +++ trunk/ca-management/src/util.ycp Fri Oct 12 17:57:49 2007 @@ -1221,7 +1221,7 @@ if (ret == `browse) { - string name = selectFile ( false, "*.pem *.der", "Import from ..." ); + string name = selectFile ( false, "*.pem *.req *.csr *.der", "Import from ..." ); if ( name != nil ) { UI::ChangeWidget(`id(`filename), `Value, name); @@ -1241,7 +1241,9 @@ else { string extention = ""; - if (substring (filename, findlastof (filename, ".")) == ".pem" ) + if (substring (filename, findlastof (filename, ".")) == ".pem" || + substring (filename, findlastof (filename, ".")) == ".req" || + substring (filename, findlastof (filename, ".")) == ".csr" ) { extention = "PEM"; } @@ -1338,7 +1340,7 @@ if (ret == `browseCert) { - string name = selectFile (false, "*.pem", "Import from ..." ); + string name = selectFile (false, "*.pem *.crt", "Import from ..." ); if ( name != nil ) { UI::ChangeWidget(`id(`pathCert), `Value, name); @@ -1348,7 +1350,7 @@ if (ret == `browseKey) { - string name = selectFile (false, "*.pem", "Import from ..." ); + string name = selectFile (false, "*.pem *.key", "Import from ..." ); if ( name != nil ) { UI::ChangeWidget(`id(`pathKey), `Value, name); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org