Author: gedmurphy
Date: Sat Jun 30 00:05:38 2007
New Revision: 27338
URL:
http://svn.reactos.org/svn/reactos?rev=27338&view=rev
Log:
don't clear paths when the browse folder dialog is cancelled
Modified:
trunk/tools/RosTE/GUI/ConsoleSettings.cs
Modified: trunk/tools/RosTE/GUI/ConsoleSettings.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/ConsoleSettings.cs…
==============================================================================
--- trunk/tools/RosTE/GUI/ConsoleSettings.cs (original)
+++ trunk/tools/RosTE/GUI/ConsoleSettings.cs Sat Jun 30 00:05:38 2007
@@ -36,12 +36,6 @@
get { return conAppDebug.Checked; }
}
- private string GetFolderLocation()
- {
- folderBrowserDialog.ShowDialog();
- return folderBrowserDialog.SelectedPath;
- }
-
public ConsoleSettings(MainConfig mainConf)
{
InitializeComponent();
@@ -60,17 +54,20 @@
private void button3_Click(object sender, EventArgs e)
{
- conQemuLoc.Text = GetFolderLocation();
+ if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
+ conQemuLoc.Text = folderBrowserDialog.SelectedPath;
}
private void button4_Click(object sender, EventArgs e)
{
- conVdkLoc.Text = GetFolderLocation();
+ if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
+ conVdkLoc.Text = folderBrowserDialog.SelectedPath;
}
private void button5_Click(object sender, EventArgs e)
{
- conDefVmLoc.Text = GetFolderLocation();
+ if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
+ conDefVmLoc.Text = folderBrowserDialog.SelectedPath;
}
private void conDialogOK_Click(object sender, EventArgs e)