summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py
index 38f890b9f1..42e88338bb 100644
--- a/bitbake/lib/bb/ui/crumbs/hig.py
+++ b/bitbake/lib/bb/ui/crumbs/hig.py
@@ -137,6 +137,8 @@ class AdvancedSettingDialog (CrumbsDialog):
137 def entry_widget_select_path_cb(self, action, parent, entry): 137 def entry_widget_select_path_cb(self, action, parent, entry):
138 dialog = gtk.FileChooserDialog("", parent, 138 dialog = gtk.FileChooserDialog("", parent,
139 gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER) 139 gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER)
140 text = entry.get_text()
141 dialog.set_current_folder(text if len(text) > 0 else os.getcwd())
140 button = dialog.add_button("Cancel", gtk.RESPONSE_NO) 142 button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
141 HobAltButton.style_button(button) 143 HobAltButton.style_button(button)
142 button = dialog.add_button("Open", gtk.RESPONSE_YES) 144 button = dialog.add_button("Open", gtk.RESPONSE_YES)
@@ -1180,6 +1182,8 @@ class ImageSelectionDialog (CrumbsDialog):
1180 def select_path_cb(self, action, parent, entry): 1182 def select_path_cb(self, action, parent, entry):
1181 dialog = gtk.FileChooserDialog("", parent, 1183 dialog = gtk.FileChooserDialog("", parent,
1182 gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER) 1184 gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER)
1185 text = entry.get_text()
1186 dialog.set_current_folder(text if len(text) > 0 else os.getcwd())
1183 button = dialog.add_button("Cancel", gtk.RESPONSE_NO) 1187 button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
1184 HobAltButton.style_button(button) 1188 HobAltButton.style_button(button)
1185 button = dialog.add_button("Open", gtk.RESPONSE_YES) 1189 button = dialog.add_button("Open", gtk.RESPONSE_YES)