[yast-commit] r62527 - /trunk/gtk/tests/FileDialog.ycp
Author: rpmcruz Date: Sun Oct 3 17:00:20 2010 New Revision: 62527 URL: http://svn.opensuse.org/viewcvs/yast?rev=62527&view=rev Log: Fixed test case. Modified: trunk/gtk/tests/FileDialog.ycp Modified: trunk/gtk/tests/FileDialog.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/tests/FileDialog.ycp?rev=62527&r1=62526&r2=62527&view=diff ============================================================================== --- trunk/gtk/tests/FileDialog.ycp (original) +++ trunk/gtk/tests/FileDialog.ycp Sun Oct 3 17:00:20 2010 @@ -50,13 +50,14 @@ UI::CloseDialog(); if (action == `open_file) - ret_path = UI::AskForSaveFileName (start_path, filter_str, "Choose a File"); + ret_path = UI::AskForExistingFile (start_path, filter_str, "Choose a File"); else if (action == `save_file) ret_path = UI::AskForSaveFileName (start_path, filter_str, "Choose a File"); else if (action == `select_folder) - ret_path = UI::AskForSaveFileName (start_path, filter_str, "Choose a Folder"); + ret_path = UI::AskForExistingDirectory (start_path, "Choose a Folder"); - if (ret_path != nil) - show_selected (ret_path); + if (ret_path == nil) + ret_path = "(none)"; + show_selected (ret_path); } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rpmcruz@svn2.opensuse.org